Hi all blenderartists
I got a little puzzle to solve:
I’m developing game export/import filter and on the way to go i had to create my own custom properties
and using them in panels.
So I created one bool property on scene:
bpy.types.Scene.scs_incl_col = bpy.props.BoolProperty( name="Include collisions",
description = "By showing variant show also it's collisions",
default=True)
After that I’m using it in custom panel placed in PROPERTIES scene area like that:
box = layout.box()
row = box.row()
row.prop(context.scene, "scs_incl_col", text="Include Collisions")
Now when i import model, show it in GLSL mode (GLSL because i need support for multiple layered textures)
and then try to switch my property on panel, it takes like few seconds for property to update.
But when i’m changing property in python console it goes smooth no lag.
Now i’m asking my self two days already what should i do about that lag. It’s a bit annoying switching some
bool property which actually doesn’t do nothing to 3d view but it still wants to refresh whole scene.
Is there any way to disable scene redraw on property change?
Or to which type i should paste this property to use it in custom operators?
Thx for replies and discussion,
notallowed