Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugenio Pignataro <info@oscurart.com.ar>2019-08-09 19:54:12 +0300
committerEugenio Pignataro <info@oscurart.com.ar>2019-08-09 19:54:12 +0300
commitdee76c8b2800789e8b306f21ebc28f87dba5b321 (patch)
tree44970c9c30746b59d825738cf39f111db2a6e1f0 /oscurart_tools
parent2833b1a115a00e518eaa2c9f53752881b5256af2 (diff)
BugFix Overrides for visibility render objects drivers
Diffstat (limited to 'oscurart_tools')
-rw-r--r--oscurart_tools/render/material_overrides.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/oscurart_tools/render/material_overrides.py b/oscurart_tools/render/material_overrides.py
index 1f8e9e10..3f138c8e 100644
--- a/oscurart_tools/render/material_overrides.py
+++ b/oscurart_tools/render/material_overrides.py
@@ -27,11 +27,11 @@ def ApplyOverrides(dummy):
@persistent
def RestoreOverrides(dummy):
global obDict
+ print(obDict)
for ob,mat in obDict.items():
if ob.type == "MESH":
- if not ob.hide_viewport and not ob.hide_render:
- ob.data.materials[0] = mat
-
+ ob.data.materials[0] = mat
+
# ---------------------------------------------------