SpaceImage.curves --> curve for consistency.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 04:37:59 +0000 (04:37 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 04:37:59 +0000 (04:37 +0000)
source/blender/editors/space_image/image_buttons.c
source/blender/makesrna/intern/rna_access.c
source/blender/makesrna/intern/rna_space.c

index 8b3ceecc7da8681688ce8bf6d6a717350eb1ff0f..6a50de566ac7c69da17fc9f045c6399b95b07d79 100644 (file)
@@ -346,7 +346,7 @@ static void image_panel_curves(const bContext *C, Panel *pa)
                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);
index cbd02d885dc41dc25bb16803633bd1ec7bcc8ebb..4d2e205d1a9121f651cb1992a83cfd86099ea947 100644 (file)
 
 #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 */
@@ -5093,3 +5077,19 @@ int RNA_property_copy(PointerRNA *ptr, PointerRNA *fromptr, PropertyRNA *prop, i
 
        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
+}
index 54b2dc1dd0f32e3c084bd979198cfbc6f14509d3..5d39537970b5f100a5bf500f9027ceda3fec9806 100644 (file)
@@ -1450,9 +1450,9 @@ static void rna_def_space_image(BlenderRNA *brna)
        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);