forked from blender/blender
main sync #3
@ -201,7 +201,7 @@ typedef struct {
|
|||||||
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_CONSTRAINT, "constraint"), \
|
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_CONSTRAINT, "constraint"), \
|
||||||
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_COLOR, "color"), \
|
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_COLOR, "color"), \
|
||||||
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_AMOUNT, "amount"), \
|
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_AMOUNT, "amount"), \
|
||||||
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_UNIT, "unit"), \
|
BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_UNIT, "unit"), \
|
||||||
{ \
|
{ \
|
||||||
NULL, NULL, NULL \
|
NULL, NULL, NULL \
|
||||||
} \
|
} \
|
||||||
|
@ -159,7 +159,8 @@ void solve_length_and_collision_constraints(const OffsetIndices<int> points_by_c
|
|||||||
else {
|
else {
|
||||||
/* Minimum distance is larger than allowed segment length.
|
/* Minimum distance is larger than allowed segment length.
|
||||||
* The unilateral collision constraint is satisfied by just clamping segment length. */
|
* The unilateral collision constraint is satisfied by just clamping segment length. */
|
||||||
positions_cu[point_i] = prev_pos_cu + math::normalize(old_pos_su - prev_pos_cu) * goal_segment_length_cu;
|
positions_cu[point_i] = prev_pos_cu + math::normalize(old_pos_su - prev_pos_cu) *
|
||||||
|
goal_segment_length_cu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (used_iterations == max_collisions) {
|
if (used_iterations == max_collisions) {
|
||||||
|
@ -2556,8 +2556,7 @@ static void rna_def_brush(BlenderRNA *brna)
|
|||||||
prop = RNA_def_property(srna, "curve_preset", PROP_ENUM, PROP_NONE);
|
prop = RNA_def_property(srna, "curve_preset", PROP_ENUM, PROP_NONE);
|
||||||
RNA_def_property_enum_items(prop, brush_curve_preset_items);
|
RNA_def_property_enum_items(prop, brush_curve_preset_items);
|
||||||
RNA_def_property_ui_text(prop, "Curve Preset", "");
|
RNA_def_property_ui_text(prop, "Curve Preset", "");
|
||||||
RNA_def_property_translation_context(prop,
|
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CURVES); /* Abusing id_curves :/ */
|
||||||
BLT_I18NCONTEXT_ID_CURVES); /* Abusing id_curves :/ */
|
|
||||||
RNA_def_property_update(prop, 0, "rna_Brush_update");
|
RNA_def_property_update(prop, 0, "rna_Brush_update");
|
||||||
|
|
||||||
prop = RNA_def_property(srna, "deform_target", PROP_ENUM, PROP_NONE);
|
prop = RNA_def_property(srna, "deform_target", PROP_ENUM, PROP_NONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user