tiny_gltf 2.5.0.1 → 2.5.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7062fb71b39fa30d713c776e8c1af96b37bea2f5d706cda6540487cb7466700
4
- data.tar.gz: 3634fbea0fce44042dcd603b089c15de73c4bd4deaf8223447d10e834f205681
3
+ metadata.gz: 3b9ae5350e9f42508fe440b32420942fefdbb15ba4d87b2abbaecba926ef4323
4
+ data.tar.gz: a25ba83d33d69911f2ccb2754d6d45870ad8372fef71d2509916b4e053338a4f
5
5
  SHA512:
6
- metadata.gz: 29573092861086465547186242fc5bf8be266b5059dc2b872fa886746859bc0a7ff0af8e77f05f6402134930c31bc852934efc37bc2b5fef739876ea47ec355b
7
- data.tar.gz: 64e83cde44c59f388eaf1678828e4f4b275ad25cee8fadece3503438faf1d3bc6d95bb86da46a36fde173d19b18d77d8760416ceaa57d1a4639aa3c35876455e
6
+ metadata.gz: bf81941cdb8ec2965691b49f9e59aec1b11c99120922f59452f44f4b37f67903f384c39625138d8830af5f26777f8f076f86ae6e09e3bce709c9c87f82e4dca5
7
+ data.tar.gz: e50b1f3b7feedbf80a7adf7610970525373ed50cc0b2eff54e9d2a1167188404fbc9626053869d1d659a0c8f3735287500d3239816d3e524f665f4292094e1fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tiny_gltf (2.5.0.1)
4
+ tiny_gltf (2.5.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -16,38 +16,38 @@ VALUE rNode_new(const Node *node, VALUE rmodel) {
16
16
  if (node->matrix.size() == 0) {
17
17
  rrotation = rb_ary_new();
18
18
  if (node->rotation.size() == 0) {
19
- rb_ary_push(rrotation, INT2NUM(0));
20
- rb_ary_push(rrotation, INT2NUM(0));
21
- rb_ary_push(rrotation, INT2NUM(0));
22
- rb_ary_push(rrotation, INT2NUM(1));
19
+ rb_ary_push(rrotation, DBL2NUM(0.0));
20
+ rb_ary_push(rrotation, DBL2NUM(0.0));
21
+ rb_ary_push(rrotation, DBL2NUM(0.0));
22
+ rb_ary_push(rrotation, DBL2NUM(1.0));
23
23
  } else {
24
24
  for (size_t i = 0; i < node->rotation.size(); i++)
25
- rb_ary_push(rrotation, INT2NUM(node->rotation[i]));
25
+ rb_ary_push(rrotation, DBL2NUM(node->rotation[i]));
26
26
  }
27
27
 
28
28
  rscale = rb_ary_new();
29
29
  if (node->rotation.size() == 0) {
30
- rb_ary_push(rscale, INT2NUM(0));
31
- rb_ary_push(rscale, INT2NUM(0));
32
- rb_ary_push(rscale, INT2NUM(0));
30
+ rb_ary_push(rscale, DBL2NUM(0.0));
31
+ rb_ary_push(rscale, DBL2NUM(0.0));
32
+ rb_ary_push(rscale, DBL2NUM(0.0));
33
33
  } else {
34
34
  for (size_t i = 0; i < node->scale.size(); i++)
35
- rb_ary_push(rscale, INT2NUM(node->scale[i]));
35
+ rb_ary_push(rscale, DBL2NUM(node->scale[i]));
36
36
  }
37
37
 
38
38
  rtranslation = rb_ary_new();
39
39
  if (node->translation.size() == 0) {
40
- rb_ary_push(rtranslation, INT2NUM(0));
41
- rb_ary_push(rtranslation, INT2NUM(0));
42
- rb_ary_push(rtranslation, INT2NUM(0));
40
+ rb_ary_push(rtranslation, DBL2NUM(0.0));
41
+ rb_ary_push(rtranslation, DBL2NUM(0.0));
42
+ rb_ary_push(rtranslation, DBL2NUM(0.0));
43
43
  } else {
44
44
  for (size_t i = 0; i < node->translation.size(); i++)
45
- rb_ary_push(rtranslation, INT2NUM(node->translation[i]));
45
+ rb_ary_push(rtranslation, DBL2NUM(node->translation[i]));
46
46
  }
47
47
  } else {
48
48
  rmatrix = rb_ary_new();
49
49
  for (size_t i = 0; i < node->matrix.size(); i++)
50
- rb_ary_push(rmatrix, INT2NUM(node->matrix[i]));
50
+ rb_ary_push(rmatrix, DBL2NUM(node->matrix[i]));
51
51
  }
52
52
 
53
53
  rb_ivar_set(rnode, rb_intern("@model"), rmodel);
@@ -1,3 +1,3 @@
1
1
  module TinyGLTF
2
- VERSION = "2.5.0.1"
2
+ VERSION = "2.5.0.2"
3
3
  end
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.1
4
+ version: 2.5.0.2
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: 2022-03-15 00:00:00.000000000 Z
11
+ date: 2022-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler