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
path: root/source
diff options
context:
space:
mode:
authorElia Sarti <vekoon@gmail.com>2010-03-26 21:15:06 +0300
committerElia Sarti <vekoon@gmail.com>2010-03-26 21:15:06 +0300
commita5197f4943a2c117a53b50ca12eba193d42663ea (patch)
tree87effd09b66aa9188afb1d1c4ea12f93fe980efa /source
parent0912d84f2ab58a8073e5f66655260e799e1003b3 (diff)
Fix for [#21773] Cast Modifier cant use empties as centers
Based on the assumption that requiring object targets to be OB_EMPTY makes any other object compatible as a target. If the assumption is wrong can be reverted. Only the Cast modifier uses this at the moment and to me it looks like Cast only uses object transform so should be fine.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 8d253ac47b8..4adb462c8d1 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -399,7 +399,7 @@ static void modifier_object_set(Object *self, Object **ob_p, int type, PointerRN
Object *ob= value.data;
if(!self || ob != self)
- if(!ob || ob->type == type)
+ if(!ob || type == OB_EMPTY || ob->type == type)
*ob_p= ob;
}
@@ -420,7 +420,7 @@ static void rna_CurveModifier_object_set(PointerRNA *ptr, PointerRNA value)
static void rna_CastModifier_object_set(PointerRNA *ptr, PointerRNA value)
{
- modifier_object_set(ptr->id.data, &((CastModifierData*)ptr->data)->object, OB_MESH, value);
+ modifier_object_set(ptr->id.data, &((CastModifierData*)ptr->data)->object, OB_EMPTY, value);
}
static void rna_ArmatureModifier_object_set(PointerRNA *ptr, PointerRNA value)