diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-06 14:16:35 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-06 14:16:35 +0300 |
commit | 5cef085f770056b9f35ee6d203dc62b5db6cde23 (patch) | |
tree | 0d56e743a73c1332ce0c70e096e733019fb3189d /source/blender/editors | |
parent | a4c0d644c9f55c39955e43bdccbf523064c0add4 (diff) |
Todo item:
Auto-texture space now is more responsive and correct.
- on transforming it, the buttons get redrawn to show option was reset
- on enabling option, texture space is recalculated/reset
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 1 | ||||
-rw-r--r-- | source/blender/editors/transform/transform.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index 171dad4bed9..b09137f084e 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -259,6 +259,7 @@ static void buttons_area_listener(ScrArea *sa, wmNotifier *wmn) switch(wmn->data) { case ND_TRANSFORM: buttons_area_redraw(sa, BCONTEXT_OBJECT); + buttons_area_redraw(sa, BCONTEXT_DATA); /* autotexpace flag */ break; case ND_POSE: case ND_BONE_ACTIVE: diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 2b1746f0e96..3f21b9bc702 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1499,8 +1499,9 @@ int initTransform(bContext *C, TransInfo *t, wmOperator *op, wmEvent *event, int t->state = TRANS_STARTING; - if(RNA_boolean_get(op->ptr, "texture_space")) - options |= CTX_TEXTURE; + if(RNA_struct_find_property(op->ptr, "texture_space")) + if(RNA_boolean_get(op->ptr, "texture_space")) + options |= CTX_TEXTURE; t->options = options; |