Fix duplicated key in ghash assert caused by object orco
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 Oct 2013 09:08:08 +0000 (09:08 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 Oct 2013 09:08:08 +0000 (09:08 +0000)
commit4f05cecbcd882d3ec2da9308b7cda4a083336b8e
treefd8b0f996499e2d005f804e0cf27fded39822235
parentfaafd7b7e2fa549bf2b51d43790b5c0e25f4f40a
Fix duplicated key in ghash assert caused by object orco

Code was rather confusing, get_object_orco was only
checking for orco in cache for some objects and was
actually allocating orco for other objects.

Now made it so get_object_orco always only checks
the cache and only call set_object_orco if there's
no orco for it yet.
source/blender/render/intern/source/convertblender.c