Fix material update
This commit is contained in:
parent
9336414b4b
commit
74b0f34c1e
|
@ -290,12 +290,12 @@ def init_properties():
|
|||
items=[('off', 'Off', 'Off'),
|
||||
('spherical', 'Spherical', 'Spherical'),
|
||||
('cylindrical', 'Cylindrical', 'Cylindrical')],
|
||||
name="Billboard", default='off', description="Track camera")
|
||||
name="Billboard", default='off', description="Track camera", update=assets.invalidate_shader_cache)
|
||||
bpy.types.Material.arm_particle = EnumProperty(
|
||||
items=[('off', 'Off', 'Off'),
|
||||
('gpu', 'GPU', 'GPU'),
|
||||
('cpu', 'CPU', 'CPU')],
|
||||
name="Particle", default='off', description="Use this material for particle system rendering")
|
||||
name="Particle", default='off', description="Use this material for particle system rendering", update=assets.invalidate_shader_cache)
|
||||
bpy.types.Material.arm_tilesheet_mat = bpy.props.BoolProperty(name="Tilesheet", description="Generate tilesheet shaders", default=False)
|
||||
bpy.types.Material.arm_blending = bpy.props.BoolProperty(name="Blending", description="Enable additive blending", default=False)
|
||||
# For scene
|
||||
|
|
Loading…
Reference in a new issue