tiny_gltf 2.5.0.3 → 2.5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/ext/tiny_gltf/rb_tiny_gltf_light.cpp +10 -1
- data/lib/tiny_gltf/version.rb +1 -1
- data/lib/tiny_gltf.rb +5 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9ad90a4d6c11611a96a653381f3fb7be97404e15277c4bb7ff0c5b2198a8bd9b
         | 
| 4 | 
            +
              data.tar.gz: 721183c44bbfdb60bf65a889e1f51e219ac0b3f28dfaec32c210ffc621323421
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5b26aa5d43dff78bfa18dc7b91034506a75fbfcd7f3fb8cc6c0373e5400b62e1187fed83486efd595f7750a4be9227cf6c4060086a8f65c0b29583d43d7e0c81
         | 
| 7 | 
            +
              data.tar.gz: 313a7ce33ceb3a2b881d908687d75d4ce8b2861ad4f0dbe3245bde5336b6daa95705ab89bb97801d40875e763dc311a838889b291ea9fa8954f7a2308267a3ae
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
| @@ -10,8 +10,17 @@ VALUE rLight_new(const Light *light, VALUE rmodel) { | |
| 10 10 |  | 
| 11 11 | 
             
              rb_ivar_set(rlight, rb_intern("@model"), rmodel);
         | 
| 12 12 | 
             
              rb_ivar_set(rlight, rb_intern("@name"),  rb_str_new2(light->name.c_str()));
         | 
| 13 | 
            -
              rb_ivar_set(rlight, rb_intern("@type"),  rb_intern(light->type.c_str()));
         | 
| 13 | 
            +
              rb_ivar_set(rlight, rb_intern("@type"),  ID2SYM(rb_intern(light->type.c_str())));
         | 
| 14 14 | 
             
              rb_ivar_set(rlight, rb_intern("@color"), rcolor);
         | 
| 15 | 
            +
              rb_ivar_set(rlight, rb_intern("@intensity"), DBL2NUM(light->intensity));
         | 
| 16 | 
            +
              rb_ivar_set(rlight, rb_intern("@range"), DBL2NUM(light->range));
         | 
| 17 | 
            +
              if (light->type == "spot") {
         | 
| 18 | 
            +
                rb_ivar_set(rlight, rb_intern("@inner_cone_angle"), DBL2NUM(light->spot.innerConeAngle));
         | 
| 19 | 
            +
                rb_ivar_set(rlight, rb_intern("@outer_cone_angle"), DBL2NUM(light->spot.outerConeAngle));
         | 
| 20 | 
            +
              } else {
         | 
| 21 | 
            +
                rb_ivar_set(rlight, rb_intern("@inner_cone_angle"), DBL2NUM(0));
         | 
| 22 | 
            +
                rb_ivar_set(rlight, rb_intern("@outer_cone_angle"), DBL2NUM(0));
         | 
| 23 | 
            +
              }
         | 
| 15 24 |  | 
| 16 25 | 
             
              return rlight;
         | 
| 17 26 | 
             
            }
         | 
    
        data/lib/tiny_gltf/version.rb
    CHANGED
    
    
    
        data/lib/tiny_gltf.rb
    CHANGED
    
    | @@ -335,6 +335,10 @@ module TinyGLTF | |
| 335 335 | 
             
                attr_inspectable :name
         | 
| 336 336 | 
             
                attr_inspectable :color
         | 
| 337 337 | 
             
                attr_inspectable :type
         | 
| 338 | 
            +
                attr_inspectable :intensity
         | 
| 339 | 
            +
                attr_inspectable :range
         | 
| 340 | 
            +
                attr_inspectable :inner_cone_angle
         | 
| 341 | 
            +
                attr_inspectable :outer_cone_angle
         | 
| 338 342 | 
             
              end
         | 
| 339 343 |  | 
| 340 344 | 
             
              class Primitive
         | 
| @@ -356,7 +360,7 @@ module TinyGLTF | |
| 356 360 | 
             
                attr_inspectable :extras
         | 
| 357 361 |  | 
| 358 362 | 
             
                def indices
         | 
| 359 | 
            -
                  model.accessors[indices_index]
         | 
| 363 | 
            +
                  indices_index && model.accessors[indices_index]
         | 
| 360 364 | 
             
                end
         | 
| 361 365 |  | 
| 362 366 | 
             
                def accessors
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: tiny_gltf
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.5.0. | 
| 4 | 
            +
              version: 2.5.0.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Colin MacKenzie IV
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2024-08-13 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 183 183 | 
             
                - !ruby/object:Gem::Version
         | 
| 184 184 | 
             
                  version: '0'
         | 
| 185 185 | 
             
            requirements: []
         | 
| 186 | 
            -
            rubygems_version: 3. | 
| 186 | 
            +
            rubygems_version: 3.5.0.dev
         | 
| 187 187 | 
             
            signing_key:
         | 
| 188 188 | 
             
            specification_version: 4
         | 
| 189 189 | 
             
            summary: Provides a Ruby extension for TinyGLTF, a C++ glTF 2.0 library.
         |