forked from bartvdbraak/blender
Fix T38450: Remove unused Children Offset option
This option was only exposed to the interface and internally was doing basically nothing. Removing it to prevent artists from being confused.
This commit is contained in:
parent
04984430ce
commit
7fbb7e32fd
@ -214,7 +214,6 @@ class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
|
||||
# these are for paths only
|
||||
row = layout.row()
|
||||
row.prop(curve, "use_path_follow")
|
||||
row.prop(curve, "use_time_offset", text="Offset Children")
|
||||
|
||||
|
||||
class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
|
||||
|
@ -1984,7 +1984,6 @@ static void ob_parcurve(Scene *scene, Object *ob, Object *par, float mat[4][4])
|
||||
{
|
||||
Curve *cu;
|
||||
float vec[4], dir[3], quat[4], radius, ctime;
|
||||
float timeoffs = 0.0, sf_orig = 0.0;
|
||||
|
||||
unit_m4(mat);
|
||||
|
||||
@ -2020,15 +2019,6 @@ static void ob_parcurve(Scene *scene, Object *ob, Object *par, float mat[4][4])
|
||||
CLAMP(ctime, 0.0f, 1.0f);
|
||||
}
|
||||
|
||||
/* time calculus is correct, now apply distance offset */
|
||||
if (cu->flag & CU_OFFS_PATHDIST) {
|
||||
ctime += timeoffs / par->curve_cache->path->totdist;
|
||||
|
||||
/* restore */
|
||||
SWAP(float, sf_orig, ob->sf);
|
||||
}
|
||||
|
||||
|
||||
/* vec: 4 items! */
|
||||
if (where_on_path(par, ctime, vec, dir, cu->flag & CU_FOLLOW ? quat : NULL, &radius, NULL)) {
|
||||
|
||||
|
@ -270,7 +270,7 @@ typedef struct Curve {
|
||||
#define CU_UV_ORCO 32
|
||||
#define CU_DEFORM_BOUNDS_OFF 64
|
||||
#define CU_STRETCH 128
|
||||
#define CU_OFFS_PATHDIST 256
|
||||
/* #define CU_OFFS_PATHDIST 256 */ /* DEPRECATED */
|
||||
#define CU_FAST 512 /* Font: no filling inside editmode */
|
||||
/* #define CU_RETOPO 1024 */ /* DEPRECATED */
|
||||
#define CU_DS_EXPAND 2048
|
||||
|
@ -890,12 +890,6 @@ static void rna_def_path(BlenderRNA *UNUSED(brna), StructRNA *srna)
|
||||
"Use the mesh bounds to clamp the deformation");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop = RNA_def_property(srna, "use_time_offset", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", CU_OFFS_PATHDIST);
|
||||
RNA_def_property_ui_text(prop, "Offset Path Distance",
|
||||
"Children will use TimeOffs value as path distance offset");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop = RNA_def_property(srna, "use_radius", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", CU_PATH_RADIUS);
|
||||
RNA_def_property_ui_text(prop, "Radius", "Option for paths and curve-deform: "
|
||||
|
Loading…
Reference in New Issue
Block a user