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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-18 13:52:40 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-18 13:53:49 +0400
commit90b831dc097f78114634c464a216663724719e81 (patch)
tree062c105bd7c9f951b3b49fee7f41842b20a6354a /source/blender/makesrna/intern/rna_group.c
parent2249d71e2636b99691281139c82b03f754c313b7 (diff)
Fix T37842: missing 3D view redraw when editing group layers and offset.
Diffstat (limited to 'source/blender/makesrna/intern/rna_group.c')
-rw-r--r--source/blender/makesrna/intern/rna_group.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_group.c b/source/blender/makesrna/intern/rna_group.c
index 45bb5c613d5..0706d974562 100644
--- a/source/blender/makesrna/intern/rna_group.c
+++ b/source/blender/makesrna/intern/rna_group.c
@@ -34,6 +34,8 @@
#include "rna_internal.h"
+#include "WM_types.h"
+
#ifdef RNA_RUNTIME
#include "DNA_scene_types.h"
@@ -42,7 +44,6 @@
#include "BKE_group.h"
#include "WM_api.h"
-#include "WM_types.h"
static PointerRNA rna_Group_objects_get(CollectionPropertyIterator *iter)
{
@@ -121,12 +122,13 @@ void RNA_def_group(BlenderRNA *brna)
RNA_def_property_float_sdna(prop, NULL, "dupli_ofs");
RNA_def_property_ui_text(prop, "Dupli Offset", "Offset from the origin to use when instancing as DupliGroup");
RNA_def_property_ui_range(prop, -10000.0, 10000.0, 10, RNA_TRANSLATION_PREC_DEFAULT);
+ RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
prop = RNA_def_property(srna, "layers", PROP_BOOLEAN, PROP_LAYER);
RNA_def_property_boolean_sdna(prop, NULL, "layer", 1);
RNA_def_property_array(prop, 20);
RNA_def_property_ui_text(prop, "Dupli Layers", "Layers visible when this group is instanced as a dupli");
-
+ RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
prop = RNA_def_property(srna, "objects", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "gobject", NULL);