Fix T63492: CTRL+click on an image in a UV or Image Editor crashes

Blender

Crash was introduced in rB48e48653c297, rB90f4ff95ed3a

`image_sample_invoke` is used for both `IMAGE_OT_sample` and
`IMAGE_OT_curves_point_set`. IMAGE_OT_curves_point_set didnt have
property `size` defined...

Now defines `size` for `IMAGE_OT_curves_point_set` as well

Reviewers: brecht

Maniphest Tasks: T63492

Differential Revision: https://developer.blender.org/D4675
This commit is contained in:
Philipp Oeser 2019-04-12 13:42:52 +02:00
parent 8a9b5e644e
commit 777446ed7d
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #63492, CTRL+click on an image in a UV or Image Editor crashes Blender
1 changed files with 5 additions and 0 deletions

View File

@ -3437,6 +3437,11 @@ void IMAGE_OT_curves_point_set(wmOperatorType *ot)
/* properties */
RNA_def_enum(ot->srna, "point", point_items, 0, "Point", "Set black point or white point for curves");
PropertyRNA *prop;
prop = RNA_def_int(ot->srna, "size", 1, 1, 128, "Sample Size", "", 1, 64);
RNA_def_property_subtype(prop, PROP_PIXEL);
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
#if 0 /* Not ported to 2.5x yet */