assimp-ffi 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/assimp/scene.rb +5 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d38ff4d71e252cf45992f5c8679401d56e4b0ecde524d4d0f71cdeba4e592216
4
- data.tar.gz: b9bacc84e9889c2e189fc52b367b1a307c7dda3d0bd216722320422f2bbf9c09
3
+ metadata.gz: 1a4b9a586de8a34826f59124bc3f043ef78ea79e6f05e3ae9fb090468166ea2c
4
+ data.tar.gz: 6aa5ee1ebbc535d2890292ca09fc9efcd1e65819b9b8a486eb55cc32db710531
5
5
  SHA512:
6
- metadata.gz: 11685cc5071e03ed4c18f278d1678ca6b44b17b9b0dd65912fe34cc4e94198a772cbec7abb838f71e993b9eedbde1c1323d455f8e1fe74de77024d56ada67691
7
- data.tar.gz: c5512f28bac1cc50395016568f37e92ae8b8c5b6a5f39959c0019e12e055e54531d5381948aeecdb935fb7d9a2fc7e98642358b0d9f98f524fe6b7027076a99f
6
+ metadata.gz: 286a74e10cb5fb469802d01e37943d1f92be78799ea6e553e5f14ff91149fc280f94b318a6f9997c850c90ad41304bd902cc7217e3413a4cea5817534aa65c65
7
+ data.tar.gz: e902a3a604538322b53c1882ac4fd77e5d2fb5058b651b9a716ed0d978721ba0e38b23766e7e2413e9728f63b124d2401c0380a79a8db3cf65e7fe4ea2b8ef40
data/lib/assimp/scene.rb CHANGED
@@ -42,7 +42,11 @@ module Assimp
42
42
  end
43
43
 
44
44
  def world_transformation
45
- ancestors.reverse.collect(&:transformation).reduce(:*) * transformation
45
+ if parent
46
+ ancestors.reverse.collect(&:transformation).reduce(:*) * transformation
47
+ else
48
+ transformation
49
+ end
46
50
  end
47
51
 
48
52
  def parent=(other)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assimp-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-28 00:00:00.000000000 Z
11
+ date: 2019-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi