bugfix [#24574] setting location gained from a matrix_world.copy().translation_part() (visual loc) after constraints causes NAN in object location after python script ends

shrinkwrap constraint was dividing by zero. also the shrinkwrap UI was incorrectly trying to draw a subtarget.
This commit is contained in:
Campbell Barton
2010-11-07 05:59:35 +00:00
parent 05e598959e
commit fbcaa502ca
3 changed files with 5 additions and 3 deletions

View File

@@ -624,7 +624,7 @@ class ConstraintButtonsPanel():
self.space_template(layout, con)
def SHRINKWRAP(self, context, layout, con):
self.target_template(layout, con)
self.target_template(layout, con, False)
layout.prop(con, "distance")
layout.prop(con, "shrinkwrap_type")