[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38009] branches/soc-2011-onion/source/ blender: uv island manager - apparently I edited the generated RNA file, that's why I didn't commit the changes last time :)
Antony Riakiotakis
kalast at gmail.com
Fri Jul 1 12:51:17 CEST 2011
Revision: 38009
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38009
Author: psy-fi
Date: 2011-07-01 10:51:16 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
uv island manager - apparently I edited the generated RNA file, that's why I didn't commit the changes last time :)
Modified Paths:
--------------
branches/soc-2011-onion/source/blender/makesdna/DNA_space_types.h
branches/soc-2011-onion/source/blender/makesrna/intern/rna_space.c
Modified: branches/soc-2011-onion/source/blender/makesdna/DNA_space_types.h
===================================================================
--- branches/soc-2011-onion/source/blender/makesdna/DNA_space_types.h 2011-07-01 10:10:30 UTC (rev 38008)
+++ branches/soc-2011-onion/source/blender/makesdna/DNA_space_types.h 2011-07-01 10:51:16 UTC (rev 38009)
@@ -779,6 +779,7 @@
#define SI_DRAW_OTHER (1<<23)
#define SI_COLOR_CORRECTION (1<<24)
+#define SI_ISLAND_MANAGER (1<<25)
/* SpaceIpo->flag (Graph Editor Settings) */
/* OLD DEPRECEATED SETTING */
Modified: branches/soc-2011-onion/source/blender/makesrna/intern/rna_space.c
===================================================================
--- branches/soc-2011-onion/source/blender/makesrna/intern/rna_space.c 2011-07-01 10:10:30 UTC (rev 38008)
+++ branches/soc-2011-onion/source/blender/makesrna/intern/rna_space.c 2011-07-01 10:51:16 UTC (rev 38009)
@@ -444,6 +444,13 @@
ED_space_image_paint_update(bmain->wm.first, scene->toolsettings);
}
+static void rna_update_island_manager(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
+{
+ SpaceImage *sima= (SpaceImage*)(ptr->data);
+ if(sima->flag & SI_ISLAND_MANAGER)
+ printf("papakia\n");
+}
+
static int rna_SpaceImageEditor_show_render_get(PointerRNA *ptr)
{
SpaceImage *sima= (SpaceImage*)(ptr->data);
@@ -1027,6 +1034,11 @@
RNA_def_property_ui_text(prop, "Live Unwrap", "Continuously unwrap the selected UV island while transforming pinned vertices");
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
+ prop= RNA_def_property(srna, "use_island_manager", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", SI_ISLAND_MANAGER);
+ RNA_def_property_ui_text(prop, "UV Island Manager", "Define Areas for uv islands to reside in");
+ RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, "rna_update_island_manager");
+
prop= RNA_def_property(srna, "pivot_point", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "around");
RNA_def_property_enum_items(prop, pivot_items);
More information about the Bf-blender-cvs
mailing list