imporve and expose follow curve offset
2.1.1 - added: follow curve show offset property in UI - added: follow curve show clickable warning if object has non-zero location to reset location - changed: created follow curve use `fixed offset`
This commit is contained in:
@@ -1053,7 +1053,7 @@ def orentation_track_from_vector(input_vector) -> str:
|
||||
|
||||
return orient
|
||||
|
||||
def create_follow_path_constraint(ob, curve, follow_curve=False):
|
||||
def create_follow_path_constraint(ob, curve, follow_curve=False, use_fixed_location=True):
|
||||
'''return create constraint'''
|
||||
# # Clear bone follow path constraint
|
||||
exiting_fp_constraints = [c for c in ob.constraints if c.type == 'FOLLOW_PATH']
|
||||
@@ -1070,6 +1070,8 @@ def create_follow_path_constraint(ob, curve, follow_curve=False):
|
||||
const.target = curve
|
||||
if follow_curve:
|
||||
const.use_curve_follow = True
|
||||
if use_fixed_location:
|
||||
const.use_fixed_location = True
|
||||
return const
|
||||
|
||||
## on_bones:
|
||||
|
||||
Reference in New Issue
Block a user