levels= (ibuf->channels==4);
RNA_pointer_create(&sc->id, &RNA_SpaceImageEditor, sima, &simaptr);
- uiTemplateCurveMapping(pa->layout, &simaptr, "curves", 'c', levels, 0);
+ uiTemplateCurveMapping(pa->layout, &simaptr, "curve", 'c', levels, 0);
}
ED_space_image_release_buffer(sima, lock);
#include "rna_internal.h"
-void RNA_warning(const char *format, ...)
-{
- va_list args;
-
- va_start(args, format);
- vprintf(format, args);
- va_end(args);
-
-#if WITH_PYTHON
- {
- extern void PyC_LineSpit(void);
- PyC_LineSpit();
- }
-#endif
-}
-
const PointerRNA PointerRNA_NULL= {{NULL}};
/* Init/Exit */
return 0;
}
+
+void RNA_warning(const char *format, ...)
+{
+ va_list args;
+
+ va_start(args, format);
+ vprintf(format, args);
+ va_end(args);
+
+#ifdef WITH_PYTHON
+ {
+ extern void PyC_LineSpit(void);
+ PyC_LineSpit();
+ }
+#endif
+}
RNA_def_property_ui_text(prop, "Image User", "Parameters defining which layer, pass and frame of the image is displayed");
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
- prop= RNA_def_property(srna, "curves", PROP_POINTER, PROP_NONE);
+ prop= RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE);
RNA_def_property_pointer_sdna(prop, NULL, "cumap");
- RNA_def_property_ui_text(prop, "Curves", "Color curve mapping to use for displaying the image");
+ RNA_def_property_ui_text(prop, "Curve", "Color curve mapping to use for displaying the image");
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, "rna_SpaceImageEditor_curves_update");
prop= RNA_def_property(srna, "scopes", PROP_POINTER, PROP_NONE);