Changed fields Odd / Even terminology to more standard Upper First /
Lower First like in AE and other mainstream apps http://www.pasteall.org/pic/show.php?id=1255 The new consensus is no dots at the end of tooltips so removed all of them on image and scene rna files
This commit is contained in:
@@ -206,46 +206,46 @@ static void rna_def_imageuser(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "auto_refresh", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", IMA_ANIM_ALWAYS);
|
||||
RNA_def_property_ui_text(prop, "Auto Refresh", "Always refresh image on frame changes.");
|
||||
RNA_def_property_ui_text(prop, "Auto Refresh", "Always refresh image on frame changes");
|
||||
RNA_def_property_update(prop, 0, "rna_ImageUser_update");
|
||||
|
||||
/* animation */
|
||||
prop= RNA_def_property(srna, "cyclic", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "cycl", 0);
|
||||
RNA_def_property_ui_text(prop, "Cyclic", "Cycle the images in the movie.");
|
||||
RNA_def_property_ui_text(prop, "Cyclic", "Cycle the images in the movie");
|
||||
RNA_def_property_update(prop, 0, "rna_ImageUser_update");
|
||||
|
||||
prop= RNA_def_property(srna, "frames", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 0, MAXFRAMEF);
|
||||
RNA_def_property_ui_text(prop, "Frames", "Sets the number of images of a movie to use.");
|
||||
RNA_def_property_ui_text(prop, "Frames", "Sets the number of images of a movie to use");
|
||||
RNA_def_property_update(prop, 0, "rna_ImageUser_update");
|
||||
|
||||
prop= RNA_def_property(srna, "offset", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_range(prop, -MAXFRAMEF, MAXFRAMEF);
|
||||
RNA_def_property_ui_text(prop, "Offset", "Offsets the number of the frame to use in the animation.");
|
||||
RNA_def_property_ui_text(prop, "Offset", "Offsets the number of the frame to use in the animation");
|
||||
RNA_def_property_update(prop, 0, "rna_ImageUser_update");
|
||||
|
||||
prop= RNA_def_property(srna, "start_frame", PROP_INT, PROP_TIME);
|
||||
RNA_def_property_int_sdna(prop, NULL, "sfra");
|
||||
RNA_def_property_range(prop, 1.0f, MAXFRAMEF);
|
||||
RNA_def_property_ui_text(prop, "Start Frame", "Sets the global starting frame of the movie.");
|
||||
RNA_def_property_ui_text(prop, "Start Frame", "Sets the global starting frame of the movie");
|
||||
RNA_def_property_update(prop, 0, "rna_ImageUser_update");
|
||||
|
||||
prop= RNA_def_property(srna, "fields_per_frame", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "fie_ima");
|
||||
RNA_def_property_range(prop, -MAXFRAMEF, MAXFRAMEF);
|
||||
RNA_def_property_ui_text(prop, "Fields per Frame", "The number of fields per rendered frame (2 fields is 1 image).");
|
||||
RNA_def_property_ui_text(prop, "Fields per Frame", "The number of fields per rendered frame (2 fields is 1 image)");
|
||||
RNA_def_property_update(prop, 0, "rna_ImageUser_update");
|
||||
|
||||
prop= RNA_def_property(srna, "multilayer_layer", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "layer");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* image_multi_cb */
|
||||
RNA_def_property_ui_text(prop, "Layer", "Layer in multilayer image.");
|
||||
RNA_def_property_ui_text(prop, "Layer", "Layer in multilayer image");
|
||||
|
||||
prop= RNA_def_property(srna, "multilayer_pass", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "pass");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* image_multi_cb */
|
||||
RNA_def_property_ui_text(prop, "Pass", "Pass in multilayer image.");
|
||||
RNA_def_property_ui_text(prop, "Pass", "Pass in multilayer image");
|
||||
}
|
||||
|
||||
static void rna_def_image(BlenderRNA *brna)
|
||||
@@ -268,8 +268,8 @@ static void rna_def_image(BlenderRNA *brna)
|
||||
{IMA_REFLECT, "REFLECTION", 0, "Reflection", "Use reflection mapping for mapping the image"},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
static const EnumPropertyItem prop_field_order_items[]= {
|
||||
{0, "EVEN", 0, "Even", "Even Fields first"},
|
||||
{IMA_STD_FIELD, "ODD", 0, "Odd", "Odd Fields first"},
|
||||
{0, "EVEN", 0, "Upper First", "Upper field first"},
|
||||
{IMA_STD_FIELD, "ODD", 0, "Lower First", "Lower field first"},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
srna= RNA_def_struct(brna, "Image", "ID");
|
||||
@@ -278,19 +278,19 @@ static void rna_def_image(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "filename", PROP_STRING, PROP_FILEPATH);
|
||||
RNA_def_property_string_sdna(prop, NULL, "name");
|
||||
RNA_def_property_ui_text(prop, "Filename", "Image/Movie file name.");
|
||||
RNA_def_property_ui_text(prop, "Filename", "Image/Movie file name");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_reload_update");
|
||||
|
||||
prop= RNA_def_property(srna, "source", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, image_source_items);
|
||||
RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_Image_source_itemf");
|
||||
RNA_def_property_ui_text(prop, "Source", "Where the image comes from.");
|
||||
RNA_def_property_ui_text(prop, "Source", "Where the image comes from");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_source_update");
|
||||
|
||||
prop= RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, prop_type_items);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Type", "How to generate the image.");
|
||||
RNA_def_property_ui_text(prop, "Type", "How to generate the image");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "packed_file", PROP_POINTER, PROP_NONE);
|
||||
@@ -300,13 +300,13 @@ static void rna_def_image(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "field_order", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "flag");
|
||||
RNA_def_property_enum_items(prop, prop_field_order_items);
|
||||
RNA_def_property_ui_text(prop, "Field Order", "Order of video fields. Select which lines are displayed first.");
|
||||
RNA_def_property_ui_text(prop, "Field Order", "Order of video fields. Select which lines are displayed first");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
/* booleans */
|
||||
prop= RNA_def_property(srna, "fields", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", IMA_FIELDS);
|
||||
RNA_def_property_ui_text(prop, "Fields", "Use fields of the image.");
|
||||
RNA_def_property_ui_text(prop, "Fields", "Use fields of the image");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_fields_update");
|
||||
|
||||
prop= RNA_def_property(srna, "antialias", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -316,95 +316,95 @@ static void rna_def_image(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "premultiply", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", IMA_DO_PREMUL);
|
||||
RNA_def_property_ui_text(prop, "Premultiply", "Convert RGB from key alpha to premultiplied alpha.");
|
||||
RNA_def_property_ui_text(prop, "Premultiply", "Convert RGB from key alpha to premultiplied alpha");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "dirty", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_funcs(prop, "rna_Image_dirty_get", NULL);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Dirty", "Image has changed and is not saved.");
|
||||
RNA_def_property_ui_text(prop, "Dirty", "Image has changed and is not saved");
|
||||
|
||||
/* generated image (image_generated_change_cb) */
|
||||
prop= RNA_def_property(srna, "generated_type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "gen_type");
|
||||
RNA_def_property_enum_items(prop, prop_generated_type_items);
|
||||
RNA_def_property_ui_text(prop, "Generated Type", "Generated image type.");
|
||||
RNA_def_property_ui_text(prop, "Generated Type", "Generated image type");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_generated_update");
|
||||
|
||||
prop= RNA_def_property(srna, "generated_width", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "gen_x");
|
||||
RNA_def_property_range(prop, 1, 16384);
|
||||
RNA_def_property_ui_text(prop, "Generated Width", "Generated image width.");
|
||||
RNA_def_property_ui_text(prop, "Generated Width", "Generated image width");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_generated_update");
|
||||
|
||||
prop= RNA_def_property(srna, "generated_height", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "gen_y");
|
||||
RNA_def_property_range(prop, 1, 16384);
|
||||
RNA_def_property_ui_text(prop, "Generated Height", "Generated image height.");
|
||||
RNA_def_property_ui_text(prop, "Generated Height", "Generated image height");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_generated_update");
|
||||
|
||||
/* realtime properties */
|
||||
prop= RNA_def_property(srna, "mapping", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "flag");
|
||||
RNA_def_property_enum_items(prop, prop_mapping_items);
|
||||
RNA_def_property_ui_text(prop, "Mapping", "Mapping type to use for this image in the game engine.");
|
||||
RNA_def_property_ui_text(prop, "Mapping", "Mapping type to use for this image in the game engine");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "display_aspect", PROP_FLOAT, PROP_XYZ);
|
||||
RNA_def_property_float_sdna(prop, NULL, "aspx");
|
||||
RNA_def_property_array(prop, 2);
|
||||
RNA_def_property_range(prop, 0.1f, 5000.0f);
|
||||
RNA_def_property_ui_text(prop, "Display Aspect", "Display Aspect for this image, does not affect rendering.");
|
||||
RNA_def_property_ui_text(prop, "Display Aspect", "Display Aspect for this image, does not affect rendering");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "animated", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "tpageflag", IMA_TWINANIM);
|
||||
RNA_def_property_ui_text(prop, "Animated", "Use as animated texture in the game engine.");
|
||||
RNA_def_property_ui_text(prop, "Animated", "Use as animated texture in the game engine");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_animated_update");
|
||||
|
||||
prop= RNA_def_property(srna, "animation_start", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "twsta");
|
||||
RNA_def_property_range(prop, 0, 128);
|
||||
RNA_def_property_ui_text(prop, "Animation Start", "Start frame of an animated texture.");
|
||||
RNA_def_property_ui_text(prop, "Animation Start", "Start frame of an animated texture");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_animated_update");
|
||||
|
||||
prop= RNA_def_property(srna, "animation_end", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "twend");
|
||||
RNA_def_property_range(prop, 0, 128);
|
||||
RNA_def_property_ui_text(prop, "Animation End", "End frame of an animated texture.");
|
||||
RNA_def_property_ui_text(prop, "Animation End", "End frame of an animated texture");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_animated_update");
|
||||
|
||||
prop= RNA_def_property(srna, "animation_speed", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "animspeed");
|
||||
RNA_def_property_range(prop, 1, 100);
|
||||
RNA_def_property_ui_text(prop, "Animation Speed", "Speed of the animation in frames per second.");
|
||||
RNA_def_property_ui_text(prop, "Animation Speed", "Speed of the animation in frames per second");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "tiles", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "tpageflag", IMA_TILES);
|
||||
RNA_def_property_ui_text(prop, "Tiles", "Use of tilemode for faces (default shift-LMB to pick the tile for selected faces).");
|
||||
RNA_def_property_ui_text(prop, "Tiles", "Use of tilemode for faces (default shift-LMB to pick the tile for selected faces)");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "tiles_x", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "xrep");
|
||||
RNA_def_property_range(prop, 1, 16);
|
||||
RNA_def_property_ui_text(prop, "Tiles X", "Degree of repetition in the X direction.");
|
||||
RNA_def_property_ui_text(prop, "Tiles X", "Degree of repetition in the X direction");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "tiles_y", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "yrep");
|
||||
RNA_def_property_range(prop, 1, 16);
|
||||
RNA_def_property_ui_text(prop, "Tiles Y", "Degree of repetition in the Y direction.");
|
||||
RNA_def_property_ui_text(prop, "Tiles Y", "Degree of repetition in the Y direction");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "clamp_x", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "tpageflag", IMA_CLAMP_U);
|
||||
RNA_def_property_ui_text(prop, "Clamp X", "Disable texture repeating horizontally.");
|
||||
RNA_def_property_ui_text(prop, "Clamp X", "Disable texture repeating horizontally");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "clamp_y", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "tpageflag", IMA_CLAMP_V);
|
||||
RNA_def_property_ui_text(prop, "Clamp Y", "Disable texture repeating vertically.");
|
||||
RNA_def_property_ui_text(prop, "Clamp Y", "Disable texture repeating vertically");
|
||||
RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
|
||||
|
||||
/*
|
||||
@@ -414,14 +414,14 @@ static void rna_def_image(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "has_data", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_funcs(prop, "rna_Image_has_data_get", NULL);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Has data", "True if this image has data.");
|
||||
RNA_def_property_ui_text(prop, "Has data", "True if this image has data");
|
||||
|
||||
prop= RNA_def_property(srna, "depth", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_funcs(prop, "rna_Image_depth_get", NULL, NULL);
|
||||
RNA_def_property_ui_text(prop, "Depth", "Image bit depth.");
|
||||
RNA_def_property_ui_text(prop, "Depth", "Image bit depth");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_int_vector(srna, "size" , 2 , NULL , 0, 0, "Size" , "Width and height in pixels, zero when image data cant be loaded." , 0 , 0);
|
||||
prop= RNA_def_int_vector(srna, "size" , 2 , NULL , 0, 0, "Size" , "Width and height in pixels, zero when image data cant be loaded" , 0 , 0);
|
||||
RNA_def_property_int_funcs(prop, "rna_Image_size_get" , NULL, NULL);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
|
||||
@@ -787,59 +787,59 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "proportional_editing", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "proportional");
|
||||
RNA_def_property_enum_items(prop, proportional_editing_items);
|
||||
RNA_def_property_ui_text(prop, "Proportional Editing", "Proportional editing mode.");
|
||||
RNA_def_property_ui_text(prop, "Proportional Editing", "Proportional editing mode");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop= RNA_def_property(srna, "proportional_editing_falloff", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "prop_mode");
|
||||
RNA_def_property_enum_items(prop, proportional_falloff_items);
|
||||
RNA_def_property_ui_text(prop, "Proportional Editing Falloff", "Falloff type for proportional editing mode.");
|
||||
RNA_def_property_ui_text(prop, "Proportional Editing Falloff", "Falloff type for proportional editing mode");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop= RNA_def_property(srna, "normal_size", PROP_FLOAT, PROP_DISTANCE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "normalsize");
|
||||
RNA_def_property_ui_text(prop, "Normal Size", "Display size for normals in the 3D view.");
|
||||
RNA_def_property_ui_text(prop, "Normal Size", "Display size for normals in the 3D view");
|
||||
RNA_def_property_range(prop, 0.00001, 1000.0);
|
||||
RNA_def_property_ui_range(prop, 0.01, 10.0, 10.0, 2);
|
||||
RNA_def_property_update(prop, NC_GEOM|ND_DATA, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "automerge_editing", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "automerge", 0);
|
||||
RNA_def_property_ui_text(prop, "AutoMerge Editing", "Automatically merge vertices moved to the same location.");
|
||||
RNA_def_property_ui_text(prop, "AutoMerge Editing", "Automatically merge vertices moved to the same location");
|
||||
|
||||
prop= RNA_def_property(srna, "snap", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP);
|
||||
RNA_def_property_ui_text(prop, "Snap", "Snap during transform.");
|
||||
RNA_def_property_ui_text(prop, "Snap", "Snap during transform");
|
||||
RNA_def_property_ui_icon(prop, ICON_SNAP_OFF, 1);
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop= RNA_def_property(srna, "snap_align_rotation", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_ROTATE);
|
||||
RNA_def_property_ui_text(prop, "Snap Align Rotation", "Align rotation with the snapping target.");
|
||||
RNA_def_property_ui_text(prop, "Snap Align Rotation", "Align rotation with the snapping target");
|
||||
RNA_def_property_ui_icon(prop, ICON_SNAP_NORMAL, 0);
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop= RNA_def_property(srna, "snap_element", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "snap_mode");
|
||||
RNA_def_property_enum_items(prop, snap_element_items);
|
||||
RNA_def_property_ui_text(prop, "Snap Element", "Type of element to snap to.");
|
||||
RNA_def_property_ui_text(prop, "Snap Element", "Type of element to snap to");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop= RNA_def_property(srna, "snap_target", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "snap_target");
|
||||
RNA_def_property_enum_items(prop, snap_target_items);
|
||||
RNA_def_property_ui_text(prop, "Snap Target", "Which part to snap onto the target.");
|
||||
RNA_def_property_ui_text(prop, "Snap Target", "Which part to snap onto the target");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop= RNA_def_property(srna, "snap_peel_object", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_PEEL_OBJECT);
|
||||
RNA_def_property_ui_text(prop, "Snap Peel Object", "Consider objects as whole when finding volume center.");
|
||||
RNA_def_property_ui_text(prop, "Snap Peel Object", "Consider objects as whole when finding volume center");
|
||||
RNA_def_property_ui_icon(prop, ICON_SNAP_PEEL_OBJECT, 0);
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop= RNA_def_property(srna, "snap_project", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_PROJECT);
|
||||
RNA_def_property_ui_text(prop, "Project Individual Elements", "Project vertices on the surface of other objects.");
|
||||
RNA_def_property_ui_text(prop, "Project Individual Elements", "Project vertices on the surface of other objects");
|
||||
RNA_def_property_ui_icon(prop, ICON_RETOPO, 0);
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
@@ -855,24 +855,24 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "record_with_nla", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "autokey_flag", ANIMRECORD_FLAG_WITHNLA);
|
||||
RNA_def_property_ui_text(prop, "Layered", "Add a new NLA Track + Strip for every loop/pass made over the animation to allow non-destructive tweaking.");
|
||||
RNA_def_property_ui_text(prop, "Layered", "Add a new NLA Track + Strip for every loop/pass made over the animation to allow non-destructive tweaking");
|
||||
|
||||
/* UV */
|
||||
prop= RNA_def_property(srna, "uv_selection_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "uv_selectmode");
|
||||
RNA_def_property_enum_items(prop, uv_select_mode_items);
|
||||
RNA_def_property_ui_text(prop, "UV Selection Mode", "UV selection and display mode.");
|
||||
RNA_def_property_ui_text(prop, "UV Selection Mode", "UV selection and display mode");
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "uv_sync_selection", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "uv_flag", UV_SYNC_SELECTION);
|
||||
RNA_def_property_ui_text(prop, "UV Sync Selection", "Keep UV and edit mode mesh selection in sync.");
|
||||
RNA_def_property_ui_text(prop, "UV Sync Selection", "Keep UV and edit mode mesh selection in sync");
|
||||
RNA_def_property_ui_icon(prop, ICON_EDIT, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "uv_local_view", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "uv_flag", UV_SHOW_SAME_IMAGE);
|
||||
RNA_def_property_ui_text(prop, "UV Local View", "Draw only faces with the currently displayed image assigned.");
|
||||
RNA_def_property_ui_text(prop, "UV Local View", "Draw only faces with the currently displayed image assigned");
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
|
||||
|
||||
/* Mesh */
|
||||
@@ -880,18 +880,18 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "selectmode", 1);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_Scene_editmesh_select_mode_set");
|
||||
RNA_def_property_ui_text(prop, "Mesh Selection Mode", "Which mesh elements selection works on.");
|
||||
RNA_def_property_ui_text(prop, "Mesh Selection Mode", "Which mesh elements selection works on");
|
||||
RNA_def_property_update(prop, 0, "rna_Scene_editmesh_select_mode_update");
|
||||
|
||||
prop= RNA_def_property(srna, "vertex_group_weight", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "vgroup_weight");
|
||||
RNA_def_property_ui_text(prop, "Vertex Group Weight", "Weight to assign in vertex groups.");
|
||||
RNA_def_property_ui_text(prop, "Vertex Group Weight", "Weight to assign in vertex groups");
|
||||
|
||||
/* use with MESH_OT_select_shortest_path */
|
||||
prop= RNA_def_property(srna, "edge_path_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "edge_mode");
|
||||
RNA_def_property_enum_items(prop, edge_tag_items);
|
||||
RNA_def_property_ui_text(prop, "Edge Tag Mode", "The edge flag to tag when selecting the shortest path.");
|
||||
RNA_def_property_ui_text(prop, "Edge Tag Mode", "The edge flag to tag when selecting the shortest path");
|
||||
|
||||
/* etch-a-ton */
|
||||
prop= RNA_def_property(srna, "bone_sketching", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -924,37 +924,37 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_struct_type(prop, "Object");
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_Scene_skgen_etch_template_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "Template", "Template armature that will be retargeted to the stroke.");
|
||||
RNA_def_property_ui_text(prop, "Template", "Template armature that will be retargeted to the stroke");
|
||||
|
||||
prop= RNA_def_property(srna, "etch_subdivision_number", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "skgen_subdivision_number");
|
||||
RNA_def_property_range(prop, 1, 10000);
|
||||
RNA_def_property_ui_text(prop, "Subdivisions", "Number of bones in the subdivided stroke.");
|
||||
RNA_def_property_ui_text(prop, "Subdivisions", "Number of bones in the subdivided stroke");
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "etch_adaptive_limit", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "skgen_correlation_limit");
|
||||
RNA_def_property_range(prop, 0.00001, 1.0);
|
||||
RNA_def_property_ui_range(prop, 0.01, 1.0, 0.01, 2);
|
||||
RNA_def_property_ui_text(prop, "Limit", "Number of bones in the subdivided stroke.");
|
||||
RNA_def_property_ui_text(prop, "Limit", "Number of bones in the subdivided stroke");
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "etch_length_limit", PROP_FLOAT, PROP_DISTANCE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "skgen_length_limit");
|
||||
RNA_def_property_range(prop, 0.00001, 100000.0);
|
||||
RNA_def_property_ui_range(prop, 0.001, 100.0, 0.1, 3);
|
||||
RNA_def_property_ui_text(prop, "Length", "Number of bones in the subdivided stroke.");
|
||||
RNA_def_property_ui_text(prop, "Length", "Number of bones in the subdivided stroke");
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "etch_roll_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "skgen_retarget_roll");
|
||||
RNA_def_property_enum_items(prop, retarget_roll_items);
|
||||
RNA_def_property_ui_text(prop, "Retarget roll mode", "Method used to adjust the roll of bones when retargeting.");
|
||||
RNA_def_property_ui_text(prop, "Retarget roll mode", "Method used to adjust the roll of bones when retargeting");
|
||||
|
||||
prop= RNA_def_property(srna, "etch_convert_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "bone_sketching_convert");
|
||||
RNA_def_property_enum_items(prop, sketch_convert_items);
|
||||
RNA_def_property_ui_text(prop, "Stroke conversion method", "Method used to convert stroke to bones.");
|
||||
RNA_def_property_ui_text(prop, "Stroke conversion method", "Method used to convert stroke to bones");
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
|
||||
}
|
||||
|
||||
@@ -981,18 +981,18 @@ static void rna_def_unit_settings(BlenderRNA *brna)
|
||||
/* Units */
|
||||
prop= RNA_def_property(srna, "system", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, unit_systems);
|
||||
RNA_def_property_ui_text(prop, "Unit System", "The unit system to use for button display.");
|
||||
RNA_def_property_ui_text(prop, "Unit System", "The unit system to use for button display");
|
||||
RNA_def_property_update(prop, NC_WINDOW, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "scale_length", PROP_FLOAT, PROP_UNSIGNED);
|
||||
RNA_def_property_ui_text(prop, "Unit Scale", "Scale to use when converting between blender units and dimensions.");
|
||||
RNA_def_property_ui_text(prop, "Unit Scale", "Scale to use when converting between blender units and dimensions");
|
||||
RNA_def_property_range(prop, 0.00001, 100000.0);
|
||||
RNA_def_property_ui_range(prop, 0.001, 100.0, 0.1, 3);
|
||||
RNA_def_property_update(prop, NC_WINDOW, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_separate", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_UNIT_OPT_SPLIT);
|
||||
RNA_def_property_ui_text(prop, "Separate Units", "Display units in pairs.");
|
||||
RNA_def_property_ui_text(prop, "Separate Units", "Display units in pairs");
|
||||
RNA_def_property_update(prop, NC_WINDOW, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "rotation_units", PROP_ENUM, PROP_NONE);
|
||||
@@ -1009,7 +1009,7 @@ void rna_def_render_layer_common(StructRNA *srna, int scene)
|
||||
prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
if(scene) RNA_def_property_string_funcs(prop, NULL, NULL, "rna_SceneRenderLayer_name_set");
|
||||
else RNA_def_property_string_sdna(prop, NULL, "name");
|
||||
RNA_def_property_ui_text(prop, "Name", "Render layer name.");
|
||||
RNA_def_property_ui_text(prop, "Name", "Render layer name");
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
@@ -1018,7 +1018,7 @@ void rna_def_render_layer_common(StructRNA *srna, int scene)
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "mat_override");
|
||||
RNA_def_property_struct_type(prop, "Material");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Material Override", "Material to override all other materials in this render layer.");
|
||||
RNA_def_property_ui_text(prop, "Material Override", "Material to override all other materials in this render layer");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
@@ -1026,7 +1026,7 @@ void rna_def_render_layer_common(StructRNA *srna, int scene)
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "light_override");
|
||||
RNA_def_property_struct_type(prop, "Group");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Light Override", "Group to override all other lights in this render layer.");
|
||||
RNA_def_property_ui_text(prop, "Light Override", "Group to override all other lights in this render layer");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
@@ -1034,7 +1034,7 @@ void rna_def_render_layer_common(StructRNA *srna, int scene)
|
||||
prop= RNA_def_property(srna, "visible_layers", PROP_BOOLEAN, PROP_LAYER_MEMBER);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "lay", 1);
|
||||
RNA_def_property_array(prop, 20);
|
||||
RNA_def_property_ui_text(prop, "Visible Layers", "Scene layers included in this render layer.");
|
||||
RNA_def_property_ui_text(prop, "Visible Layers", "Scene layers included in this render layer");
|
||||
if(scene) RNA_def_property_boolean_funcs(prop, NULL, "rna_SceneRenderLayer_layer_set");
|
||||
else RNA_def_property_boolean_funcs(prop, NULL, "rna_RenderLayer_layer_set");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
@@ -1050,212 +1050,212 @@ void rna_def_render_layer_common(StructRNA *srna, int scene)
|
||||
/* layer options */
|
||||
prop= RNA_def_property(srna, "enabled", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "layflag", SCE_LAY_DISABLE);
|
||||
RNA_def_property_ui_text(prop, "Enabled", "Disable or enable the render layer.");
|
||||
RNA_def_property_ui_text(prop, "Enabled", "Disable or enable the render layer");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "zmask", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_ZMASK);
|
||||
RNA_def_property_ui_text(prop, "Zmask", "Only render what's in front of the solid z values.");
|
||||
RNA_def_property_ui_text(prop, "Zmask", "Only render what's in front of the solid z values");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "zmask_negate", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_NEG_ZMASK);
|
||||
RNA_def_property_ui_text(prop, "Zmask Negate", "For Zmask, only render what is behind solid z values instead of in front.");
|
||||
RNA_def_property_ui_text(prop, "Zmask Negate", "For Zmask, only render what is behind solid z values instead of in front");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "all_z", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_ALL_Z);
|
||||
RNA_def_property_ui_text(prop, "All Z", "Fill in Z values for solid faces in invisible layers, for masking.");
|
||||
RNA_def_property_ui_text(prop, "All Z", "Fill in Z values for solid faces in invisible layers, for masking");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "solid", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_SOLID);
|
||||
RNA_def_property_ui_text(prop, "Solid", "Render Solid faces in this Layer.");
|
||||
RNA_def_property_ui_text(prop, "Solid", "Render Solid faces in this Layer");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "halo", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_HALO);
|
||||
RNA_def_property_ui_text(prop, "Halo", "Render Halos in this Layer (on top of Solid).");
|
||||
RNA_def_property_ui_text(prop, "Halo", "Render Halos in this Layer (on top of Solid)");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "ztransp", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_ZTRA);
|
||||
RNA_def_property_ui_text(prop, "ZTransp", "Render Z-Transparent faces in this Layer (On top of Solid and Halos).");
|
||||
RNA_def_property_ui_text(prop, "ZTransp", "Render Z-Transparent faces in this Layer (On top of Solid and Halos)");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "sky", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_SKY);
|
||||
RNA_def_property_ui_text(prop, "Sky", "Render Sky in this Layer.");
|
||||
RNA_def_property_ui_text(prop, "Sky", "Render Sky in this Layer");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "edge", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_EDGE);
|
||||
RNA_def_property_ui_text(prop, "Edge", "Render Edge-enhance in this Layer (only works for Solid faces).");
|
||||
RNA_def_property_ui_text(prop, "Edge", "Render Edge-enhance in this Layer (only works for Solid faces)");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "strand", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_STRAND);
|
||||
RNA_def_property_ui_text(prop, "Strand", "Render Strands in this Layer.");
|
||||
RNA_def_property_ui_text(prop, "Strand", "Render Strands in this Layer");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
/* passes */
|
||||
prop= RNA_def_property(srna, "pass_combined", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_COMBINED);
|
||||
RNA_def_property_ui_text(prop, "Combined", "Deliver full combined RGBA buffer.");
|
||||
RNA_def_property_ui_text(prop, "Combined", "Deliver full combined RGBA buffer");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_z", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_Z);
|
||||
RNA_def_property_ui_text(prop, "Z", "Deliver Z values pass.");
|
||||
RNA_def_property_ui_text(prop, "Z", "Deliver Z values pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_vector", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_VECTOR);
|
||||
RNA_def_property_ui_text(prop, "Vector", "Deliver speed vector pass.");
|
||||
RNA_def_property_ui_text(prop, "Vector", "Deliver speed vector pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_normal", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_NORMAL);
|
||||
RNA_def_property_ui_text(prop, "Normal", "Deliver normal pass.");
|
||||
RNA_def_property_ui_text(prop, "Normal", "Deliver normal pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_uv", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_UV);
|
||||
RNA_def_property_ui_text(prop, "UV", "Deliver texture UV pass.");
|
||||
RNA_def_property_ui_text(prop, "UV", "Deliver texture UV pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_mist", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_MIST);
|
||||
RNA_def_property_ui_text(prop, "Mist", "Deliver mist factor pass (0.0-1.0).");
|
||||
RNA_def_property_ui_text(prop, "Mist", "Deliver mist factor pass (0.0-1.0)");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_object_index", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_INDEXOB);
|
||||
RNA_def_property_ui_text(prop, "Object Index", "Deliver object index pass.");
|
||||
RNA_def_property_ui_text(prop, "Object Index", "Deliver object index pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_color", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_RGBA);
|
||||
RNA_def_property_ui_text(prop, "Color", "Deliver shade-less color pass.");
|
||||
RNA_def_property_ui_text(prop, "Color", "Deliver shade-less color pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_diffuse", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_DIFFUSE);
|
||||
RNA_def_property_ui_text(prop, "Diffuse", "Deliver diffuse pass.");
|
||||
RNA_def_property_ui_text(prop, "Diffuse", "Deliver diffuse pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_specular", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SPEC);
|
||||
RNA_def_property_ui_text(prop, "Specular", "Deliver specular pass.");
|
||||
RNA_def_property_ui_text(prop, "Specular", "Deliver specular pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_shadow", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SHADOW);
|
||||
RNA_def_property_ui_text(prop, "Shadow", "Deliver shadow pass.");
|
||||
RNA_def_property_ui_text(prop, "Shadow", "Deliver shadow pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_ao", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_AO);
|
||||
RNA_def_property_ui_text(prop, "AO", "Deliver AO pass.");
|
||||
RNA_def_property_ui_text(prop, "AO", "Deliver AO pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_reflection", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_REFLECT);
|
||||
RNA_def_property_ui_text(prop, "Reflection", "Deliver raytraced reflection pass.");
|
||||
RNA_def_property_ui_text(prop, "Reflection", "Deliver raytraced reflection pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_refraction", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_REFRACT);
|
||||
RNA_def_property_ui_text(prop, "Refraction", "Deliver raytraced refraction pass.");
|
||||
RNA_def_property_ui_text(prop, "Refraction", "Deliver raytraced refraction pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_emit", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_EMIT);
|
||||
RNA_def_property_ui_text(prop, "Emit", "Deliver emission pass.");
|
||||
RNA_def_property_ui_text(prop, "Emit", "Deliver emission pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_environment", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_ENVIRONMENT);
|
||||
RNA_def_property_ui_text(prop, "Environment", "Deliver environment lighting pass.");
|
||||
RNA_def_property_ui_text(prop, "Environment", "Deliver environment lighting pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_indirect", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_INDIRECT);
|
||||
RNA_def_property_ui_text(prop, "Indirect", "Deliver indirect lighting pass.");
|
||||
RNA_def_property_ui_text(prop, "Indirect", "Deliver indirect lighting pass");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_specular_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_SPEC);
|
||||
RNA_def_property_ui_text(prop, "Specular Exclude", "Exclude specular pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "Specular Exclude", "Exclude specular pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_shadow_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_SHADOW);
|
||||
RNA_def_property_ui_text(prop, "Shadow Exclude", "Exclude shadow pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "Shadow Exclude", "Exclude shadow pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_ao_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_AO);
|
||||
RNA_def_property_ui_text(prop, "AO Exclude", "Exclude AO pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "AO Exclude", "Exclude AO pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_reflection_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_REFLECT);
|
||||
RNA_def_property_ui_text(prop, "Reflection Exclude", "Exclude raytraced reflection pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "Reflection Exclude", "Exclude raytraced reflection pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_refraction_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_REFRACT);
|
||||
RNA_def_property_ui_text(prop, "Refraction Exclude", "Exclude raytraced refraction pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "Refraction Exclude", "Exclude raytraced refraction pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_emit_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_EMIT);
|
||||
RNA_def_property_ui_text(prop, "Emit Exclude", "Exclude emission pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "Emit Exclude", "Exclude emission pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_environment_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_ENVIRONMENT);
|
||||
RNA_def_property_ui_text(prop, "Environment Exclude", "Exclude environment pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "Environment Exclude", "Exclude environment pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "pass_indirect_exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "pass_xor", SCE_PASS_INDIRECT);
|
||||
RNA_def_property_ui_text(prop, "Indirect Exclude", "Exclude indirect pass from combined.");
|
||||
RNA_def_property_ui_text(prop, "Indirect Exclude", "Exclude indirect pass from combined");
|
||||
if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_SceneRenderLayer_pass_update");
|
||||
else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
}
|
||||
@@ -1317,26 +1317,26 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "resolution_x", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "xplay");
|
||||
RNA_def_property_range(prop, 4, 10000);
|
||||
RNA_def_property_ui_text(prop, "Resolution X", "Number of horizontal pixels in the screen.");
|
||||
RNA_def_property_ui_text(prop, "Resolution X", "Number of horizontal pixels in the screen");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "resolution_y", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "yplay");
|
||||
RNA_def_property_range(prop, 4, 10000);
|
||||
RNA_def_property_ui_text(prop, "Resolution Y", "Number of vertical pixels in the screen.");
|
||||
RNA_def_property_ui_text(prop, "Resolution Y", "Number of vertical pixels in the screen");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "depth", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "depth");
|
||||
RNA_def_property_range(prop, 8, 32);
|
||||
RNA_def_property_ui_text(prop, "Bits", "Displays bit depth of full screen display.");
|
||||
RNA_def_property_ui_text(prop, "Bits", "Displays bit depth of full screen display");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
// Do we need it here ? (since we already have it in World
|
||||
prop= RNA_def_property(srna, "frequency", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "freqplay");
|
||||
RNA_def_property_range(prop, 4, 2000);
|
||||
RNA_def_property_ui_text(prop, "Freq", "Displays clock frequency of fullscreen display.");
|
||||
RNA_def_property_ui_text(prop, "Freq", "Displays clock frequency of fullscreen display");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "fullscreen", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -1348,7 +1348,7 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "framing_type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "framing.type");
|
||||
RNA_def_property_enum_items(prop, framing_types_items);
|
||||
RNA_def_property_ui_text(prop, "Framing Types", "Select the type of Framing you want.");
|
||||
RNA_def_property_ui_text(prop, "Framing Types", "Select the type of Framing you want");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "framing_color", PROP_FLOAT, PROP_COLOR);
|
||||
@@ -1418,13 +1418,13 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "physics_engine", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "physicsEngine");
|
||||
RNA_def_property_enum_items(prop, physics_engine_items);
|
||||
RNA_def_property_ui_text(prop, "Physics Engine", "Physics engine used for physics simulation in the game engine.");
|
||||
RNA_def_property_ui_text(prop, "Physics Engine", "Physics engine used for physics simulation in the game engine");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "physics_gravity", PROP_FLOAT, PROP_ACCELERATION);
|
||||
RNA_def_property_float_sdna(prop, NULL, "gravity");
|
||||
RNA_def_property_range(prop, 0.0, 25.0);
|
||||
RNA_def_property_ui_text(prop, "Physics Gravity", "Gravitational constant used for physics simulation in the game engine.");
|
||||
RNA_def_property_ui_text(prop, "Physics Gravity", "Gravitational constant used for physics simulation in the game engine");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "occlusion_culling_resolution", PROP_FLOAT, PROP_NONE);
|
||||
@@ -1437,7 +1437,7 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
RNA_def_property_int_sdna(prop, NULL, "ticrate");
|
||||
RNA_def_property_ui_range(prop, 1, 60, 1, 1);
|
||||
RNA_def_property_range(prop, 1, 250);
|
||||
RNA_def_property_ui_text(prop, "Frames Per Second", "The nominal number of game frames per second. Physics fixed timestep = 1/fps, independently of actual frame rate.");
|
||||
RNA_def_property_ui_text(prop, "Frames Per Second", "The nominal number of game frames per second. Physics fixed timestep = 1/fps, independently of actual frame rate");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "logic_step_max", PROP_INT, PROP_NONE);
|
||||
@@ -1483,69 +1483,69 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
/* booleans */
|
||||
prop= RNA_def_property(srna, "all_frames", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GAME_ENABLE_ALL_FRAMES);
|
||||
RNA_def_property_ui_text(prop, "All Frames", "Render as many frames as possible, rather than respecting framerate.");
|
||||
RNA_def_property_ui_text(prop, "All Frames", "Render as many frames as possible, rather than respecting framerate");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "show_debug_properties", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GAME_SHOW_DEBUG_PROPS);
|
||||
RNA_def_property_ui_text(prop, "Show Debug Properties", "Show properties marked for debugging while the game runs.");
|
||||
RNA_def_property_ui_text(prop, "Show Debug Properties", "Show properties marked for debugging while the game runs");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "show_framerate_profile", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GAME_SHOW_FRAMERATE);
|
||||
RNA_def_property_ui_text(prop, "Show Framerate and Profile", "Show framerate and profiling information while the game runs.");
|
||||
RNA_def_property_ui_text(prop, "Show Framerate and Profile", "Show framerate and profiling information while the game runs");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "show_physics_visualization", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GAME_SHOW_PHYSICS);
|
||||
RNA_def_property_ui_text(prop, "Show Physics Visualization", "Show a visualization of physics bounds and interactions.");
|
||||
RNA_def_property_ui_text(prop, "Show Physics Visualization", "Show a visualization of physics bounds and interactions");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "display_lists", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GAME_DISPLAY_LISTS);
|
||||
RNA_def_property_ui_text(prop, "Display Lists", "Use display lists to speed up rendering by keeping geometry on the GPU.");
|
||||
RNA_def_property_ui_text(prop, "Display Lists", "Use display lists to speed up rendering by keeping geometry on the GPU");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "deprecation_warnings", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GAME_IGNORE_DEPRECATION_WARNINGS);
|
||||
RNA_def_property_ui_text(prop, "Deprecation Warnings", "Print warnings when using deprecated features in the python API.");
|
||||
RNA_def_property_ui_text(prop, "Deprecation Warnings", "Print warnings when using deprecated features in the python API");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
/* materials */
|
||||
prop= RNA_def_property(srna, "material_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "matmode");
|
||||
RNA_def_property_enum_items(prop, material_items);
|
||||
RNA_def_property_ui_text(prop, "Material Mode", "Material mode to use for rendering.");
|
||||
RNA_def_property_ui_text(prop, "Material Mode", "Material mode to use for rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "glsl_lights", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GAME_GLSL_NO_LIGHTS);
|
||||
RNA_def_property_ui_text(prop, "GLSL Lights", "Use lights for GLSL rendering.");
|
||||
RNA_def_property_ui_text(prop, "GLSL Lights", "Use lights for GLSL rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "glsl_shaders", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GAME_GLSL_NO_SHADERS);
|
||||
RNA_def_property_ui_text(prop, "GLSL Shaders", "Use shaders for GLSL rendering.");
|
||||
RNA_def_property_ui_text(prop, "GLSL Shaders", "Use shaders for GLSL rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "glsl_shadows", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GAME_GLSL_NO_SHADOWS);
|
||||
RNA_def_property_ui_text(prop, "GLSL Shadows", "Use shadows for GLSL rendering.");
|
||||
RNA_def_property_ui_text(prop, "GLSL Shadows", "Use shadows for GLSL rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "glsl_ramps", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GAME_GLSL_NO_RAMPS);
|
||||
RNA_def_property_ui_text(prop, "GLSL Ramps", "Use ramps for GLSL rendering.");
|
||||
RNA_def_property_ui_text(prop, "GLSL Ramps", "Use ramps for GLSL rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "glsl_nodes", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GAME_GLSL_NO_NODES);
|
||||
RNA_def_property_ui_text(prop, "GLSL Nodes", "Use nodes for GLSL rendering.");
|
||||
RNA_def_property_ui_text(prop, "GLSL Nodes", "Use nodes for GLSL rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "glsl_extra_textures", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GAME_GLSL_NO_EXTRA_TEX);
|
||||
RNA_def_property_ui_text(prop, "GLSL Extra Textures", "Use extra textures like normal or specular maps for GLSL rendering.");
|
||||
RNA_def_property_ui_text(prop, "GLSL Extra Textures", "Use extra textures like normal or specular maps for GLSL rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
}
|
||||
|
||||
@@ -1647,8 +1647,8 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
static EnumPropertyItem field_order_items[] = {
|
||||
{0, "FIELDS_EVENFIRST", 0, "Even", "Even Fields First"},
|
||||
{R_ODDFIELD, "FIELDS_ODDFIRST", 0, "Odd", "Odd Fields First"},
|
||||
{0, "FIELDS_EVENFIRST", 0, "Upper First", "Upper field first"},
|
||||
{R_ODDFIELD, "FIELDS_ODDFIRST", 0, "Lower First", "Lower field first"},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
static EnumPropertyItem threads_mode_items[] = {
|
||||
@@ -1800,13 +1800,13 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "resolution_x", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "xsch");
|
||||
RNA_def_property_range(prop, 4, 10000);
|
||||
RNA_def_property_ui_text(prop, "Resolution X", "Number of horizontal pixels in the rendered image.");
|
||||
RNA_def_property_ui_text(prop, "Resolution X", "Number of horizontal pixels in the rendered image");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "resolution_y", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "ysch");
|
||||
RNA_def_property_range(prop, 4, 10000);
|
||||
RNA_def_property_ui_text(prop, "Resolution Y", "Number of vertical pixels in the rendered image.");
|
||||
RNA_def_property_ui_text(prop, "Resolution Y", "Number of vertical pixels in the rendered image");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "resolution_percentage", PROP_INT, PROP_PERCENTAGE);
|
||||
@@ -1818,13 +1818,13 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "parts_x", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "xparts");
|
||||
RNA_def_property_range(prop, 1, 512);
|
||||
RNA_def_property_ui_text(prop, "Parts X", "Number of horizontal tiles to use while rendering.");
|
||||
RNA_def_property_ui_text(prop, "Parts X", "Number of horizontal tiles to use while rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "parts_y", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "yparts");
|
||||
RNA_def_property_range(prop, 1, 512);
|
||||
RNA_def_property_ui_text(prop, "Parts Y", "Number of vertical tiles to use while rendering.");
|
||||
RNA_def_property_ui_text(prop, "Parts Y", "Number of vertical tiles to use while rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "pixel_aspect_x", PROP_FLOAT, PROP_NONE);
|
||||
@@ -1844,7 +1844,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "quality", PROP_INT, PROP_PERCENTAGE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "quality");
|
||||
RNA_def_property_range(prop, 1, 100);
|
||||
RNA_def_property_ui_text(prop, "Quality", "Quality of JPEG images, AVI Jpeg and SGI movies.");
|
||||
RNA_def_property_ui_text(prop, "Quality", "Quality of JPEG images, AVI Jpeg and SGI movies");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* Tiff */
|
||||
@@ -2005,7 +2005,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "ffmpeg_autosplit", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "ffcodecdata.flags", FFMPEG_AUTOSPLIT_OUTPUT);
|
||||
RNA_def_property_ui_text(prop, "Autosplit Output", "Autosplit output at 2GB boundary.");
|
||||
RNA_def_property_ui_text(prop, "Autosplit Output", "Autosplit output at 2GB boundary");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* FFMPEG Audio*/
|
||||
@@ -2039,7 +2039,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
RNA_def_property_int_sdna(prop, NULL, "frs_sec");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 1, 120);
|
||||
RNA_def_property_ui_text(prop, "FPS", "Framerate, expressed in frames per second.");
|
||||
RNA_def_property_ui_text(prop, "FPS", "Framerate, expressed in frames per second");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "fps_base", PROP_FLOAT, PROP_NONE);
|
||||
@@ -2052,63 +2052,63 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "dither_intensity", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "dither_intensity");
|
||||
RNA_def_property_range(prop, 0.0f, 2.0f);
|
||||
RNA_def_property_ui_text(prop, "Dither Intensity", "Amount of dithering noise added to the rendered image to break up banding.");
|
||||
RNA_def_property_ui_text(prop, "Dither Intensity", "Amount of dithering noise added to the rendered image to break up banding");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "pixel_filter", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "filtertype");
|
||||
RNA_def_property_enum_items(prop, pixel_filter_items);
|
||||
RNA_def_property_ui_text(prop, "Pixel Filter", "Reconstruction filter used for combining anti-aliasing samples.");
|
||||
RNA_def_property_ui_text(prop, "Pixel Filter", "Reconstruction filter used for combining anti-aliasing samples");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "filter_size", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "gauss");
|
||||
RNA_def_property_range(prop, 0.5f, 1.5f);
|
||||
RNA_def_property_ui_text(prop, "Filter Size", "Pixel width over which the reconstruction filter combines samples.");
|
||||
RNA_def_property_ui_text(prop, "Filter Size", "Pixel width over which the reconstruction filter combines samples");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "alpha_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "alphamode");
|
||||
RNA_def_property_enum_items(prop, alpha_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Alpha Mode", "Representation of alpha information in the RGBA pixels.");
|
||||
RNA_def_property_ui_text(prop, "Alpha Mode", "Representation of alpha information in the RGBA pixels");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "octree_resolution", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "ocres");
|
||||
RNA_def_property_enum_items(prop, octree_resolution_items);
|
||||
RNA_def_property_ui_text(prop, "Octree Resolution", "Resolution of raytrace accelerator. Use higher resolutions for larger scenes.");
|
||||
RNA_def_property_ui_text(prop, "Octree Resolution", "Resolution of raytrace accelerator. Use higher resolutions for larger scenes");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "raytrace_structure", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "raytrace_structure");
|
||||
RNA_def_property_enum_items(prop, raytrace_structure_items);
|
||||
RNA_def_property_ui_text(prop, "Raytrace Acceleration Structure", "Type of raytrace accelerator structure.");
|
||||
RNA_def_property_ui_text(prop, "Raytrace Acceleration Structure", "Type of raytrace accelerator structure");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_instances", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "raytrace_options", R_RAYTRACE_USE_INSTANCES);
|
||||
RNA_def_property_ui_text(prop, "Use Instances", "Instance support leads to effective memory reduction when using duplicates.");
|
||||
RNA_def_property_ui_text(prop, "Use Instances", "Instance support leads to effective memory reduction when using duplicates");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_local_coords", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "raytrace_options", R_RAYTRACE_USE_LOCAL_COORDS);
|
||||
RNA_def_property_ui_text(prop, "Use Local Coords", "Vertex coordinates are stored localy on each primitive. Increases memory usage, but may have impact on speed.");
|
||||
RNA_def_property_ui_text(prop, "Use Local Coords", "Vertex coordinates are stored localy on each primitive. Increases memory usage, but may have impact on speed");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "antialiasing", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_OSA);
|
||||
RNA_def_property_ui_text(prop, "Anti-Aliasing", "Render and combine multiple samples per pixel to prevent jagged edges.");
|
||||
RNA_def_property_ui_text(prop, "Anti-Aliasing", "Render and combine multiple samples per pixel to prevent jagged edges");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "antialiasing_samples", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "osa");
|
||||
RNA_def_property_enum_items(prop, fixed_oversample_items);
|
||||
RNA_def_property_ui_text(prop, "Anti-Aliasing Samples", "Amount of anti-aliasing samples per pixel.");
|
||||
RNA_def_property_ui_text(prop, "Anti-Aliasing Samples", "Amount of anti-aliasing samples per pixel");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "fields", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_FIELDS);
|
||||
RNA_def_property_ui_text(prop, "Fields", "Render image to two fields per frame, for interlaced TV output.");
|
||||
RNA_def_property_ui_text(prop, "Fields", "Render image to two fields per frame, for interlaced TV output");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "field_order", PROP_ENUM, PROP_NONE);
|
||||
@@ -2119,37 +2119,37 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "fields_still", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_FIELDSTILL);
|
||||
RNA_def_property_ui_text(prop, "Fields Still", "Disable the time difference between fields.");
|
||||
RNA_def_property_ui_text(prop, "Fields Still", "Disable the time difference between fields");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "render_shadows", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_SHADOW);
|
||||
RNA_def_property_ui_text(prop, "Render Shadows", "Calculate shadows while rendering.");
|
||||
RNA_def_property_ui_text(prop, "Render Shadows", "Calculate shadows while rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "render_envmaps", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_ENVMAP);
|
||||
RNA_def_property_ui_text(prop, "Render Environment Maps", "Calculate environment maps while rendering.");
|
||||
RNA_def_property_ui_text(prop, "Render Environment Maps", "Calculate environment maps while rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "render_radiosity", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_RADIO);
|
||||
RNA_def_property_ui_text(prop, "Render Radiosity", "Calculate radiosity in a pre-process before rendering.");
|
||||
RNA_def_property_ui_text(prop, "Render Radiosity", "Calculate radiosity in a pre-process before rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "render_sss", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_SSS);
|
||||
RNA_def_property_ui_text(prop, "Render SSS", "Calculate sub-surface scattering in materials rendering.");
|
||||
RNA_def_property_ui_text(prop, "Render SSS", "Calculate sub-surface scattering in materials rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "render_raytracing", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_RAYTRACE);
|
||||
RNA_def_property_ui_text(prop, "Render Raytracing", "Pre-calculate the raytrace accelerator and render raytracing effects.");
|
||||
RNA_def_property_ui_text(prop, "Render Raytracing", "Pre-calculate the raytrace accelerator and render raytracing effects");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "render_textures", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "scemode", R_NO_TEX);
|
||||
RNA_def_property_ui_text(prop, "Render Textures", "Use textures to affect material properties.");
|
||||
RNA_def_property_ui_text(prop, "Render Textures", "Use textures to affect material properties");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "edge", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -2195,13 +2195,13 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "use_border", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_BORDER);
|
||||
RNA_def_property_ui_text(prop, "Border", "Render a user-defined border region, within the frame size. Note, this disables save_buffers and full_sample.");
|
||||
RNA_def_property_ui_text(prop, "Border", "Render a user-defined border region, within the frame size. Note, this disables save_buffers and full_sample");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "border_min_x", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "border.xmin");
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Border Minimum X", "Sets minimum X value to for the render border.");
|
||||
RNA_def_property_ui_text(prop, "Border Minimum X", "Sets minimum X value to for the render border");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "border_min_y", PROP_FLOAT, PROP_NONE);
|
||||
@@ -2224,27 +2224,27 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "crop_to_border", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_CROP);
|
||||
RNA_def_property_ui_text(prop, "Crop to Border", "Crop the rendered frame to the defined border size.");
|
||||
RNA_def_property_ui_text(prop, "Crop to Border", "Crop the rendered frame to the defined border size");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_placeholder", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_TOUCH);
|
||||
RNA_def_property_ui_text(prop, "Placeholders", "Create empty placeholder files while rendering frames (similar to Unix 'touch').");
|
||||
RNA_def_property_ui_text(prop, "Placeholders", "Create empty placeholder files while rendering frames (similar to Unix 'touch')");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_overwrite", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "mode", R_NO_OVERWRITE);
|
||||
RNA_def_property_ui_text(prop, "Overwrite", "Overwrite existing files while rendering.");
|
||||
RNA_def_property_ui_text(prop, "Overwrite", "Overwrite existing files while rendering");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_compositing", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_DOCOMP);
|
||||
RNA_def_property_ui_text(prop, "Compositing", "Process the render result through the compositing pipeline, if compositing nodes are enabled.");
|
||||
RNA_def_property_ui_text(prop, "Compositing", "Process the render result through the compositing pipeline, if compositing nodes are enabled");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_sequencer", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_DOSEQ);
|
||||
RNA_def_property_ui_text(prop, "Sequencer", "Process the render (and composited) result through the video sequence editor pipeline, if sequencer strips exist.");
|
||||
RNA_def_property_ui_text(prop, "Sequencer", "Process the render (and composited) result through the video sequence editor pipeline, if sequencer strips exist");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "color_management", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -2261,35 +2261,35 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
RNA_def_property_enum_sdna(prop, NULL, "imtype");
|
||||
RNA_def_property_enum_items(prop, image_type_items);
|
||||
RNA_def_property_enum_funcs(prop, NULL, "rna_SceneRenderData_file_format_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "File Format", "File format to save the rendered images as.");
|
||||
RNA_def_property_ui_text(prop, "File Format", "File format to save the rendered images as");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "file_extension", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_funcs(prop, "rna_SceneRender_file_ext_get", "rna_SceneRender_file_ext_length", NULL);
|
||||
RNA_def_property_ui_text(prop, "Extension", "The file extension used for saving renders.");
|
||||
RNA_def_property_ui_text(prop, "Extension", "The file extension used for saving renders");
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "free_image_textures", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FREE_IMAGE);
|
||||
RNA_def_property_ui_text(prop, "Free Image Textures", "Free all image texture from memory after render, to save memory before compositing.");
|
||||
RNA_def_property_ui_text(prop, "Free Image Textures", "Free all image texture from memory after render, to save memory before compositing");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "free_unused_nodes", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FREE_IMAGE);
|
||||
RNA_def_property_ui_text(prop, "Free Unused Nodes", "Free Nodes that are not used while compositing, to save memory.");
|
||||
RNA_def_property_ui_text(prop, "Free Unused Nodes", "Free Nodes that are not used while compositing, to save memory");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "save_buffers", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_EXR_TILE_FILE);
|
||||
RNA_def_property_boolean_funcs(prop, "rna_SceneRenderData_save_buffers_get", NULL);
|
||||
RNA_def_property_ui_text(prop, "Save Buffers","Save tiles for all RenderLayers and SceneNodes to files in the temp directory (saves memory, required for Full Sample).");
|
||||
RNA_def_property_ui_text(prop, "Save Buffers","Save tiles for all RenderLayers and SceneNodes to files in the temp directory (saves memory, required for Full Sample)");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "full_sample", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FULL_SAMPLE);
|
||||
RNA_def_property_boolean_funcs(prop, "rna_SceneRenderData_full_sample_get", NULL);
|
||||
RNA_def_property_ui_text(prop, "Full Sample","Save for every anti-aliasing sample the entire RenderLayer results. This solves anti-aliasing issues with compositing.");
|
||||
RNA_def_property_ui_text(prop, "Full Sample","Save for every anti-aliasing sample the entire RenderLayer results. This solves anti-aliasing issues with compositing");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "backbuf", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -2305,7 +2305,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "output_path", PROP_STRING, PROP_DIRPATH);
|
||||
RNA_def_property_string_sdna(prop, NULL, "pic");
|
||||
RNA_def_property_ui_text(prop, "Output Path", "Directory/name to save animations, # characters defines the position and length of frame numbers.");
|
||||
RNA_def_property_ui_text(prop, "Output Path", "Directory/name to save animations, # characters defines the position and length of frame numbers");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* Bake */
|
||||
@@ -2335,7 +2335,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "bake_normalized", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_NORMALIZE);
|
||||
RNA_def_property_ui_text(prop, "Normalized", "With displacement normalize to the distance, with ambient occlusion normalize without using material settings.");
|
||||
RNA_def_property_ui_text(prop, "Normalized", "With displacement normalize to the distance, with ambient occlusion normalize without using material settings");
|
||||
|
||||
prop= RNA_def_property(srna, "bake_clear", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_CLEAR);
|
||||
@@ -2451,63 +2451,63 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "single_layer", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_SINGLE_LAYER);
|
||||
RNA_def_property_ui_text(prop, "Single Layer", "Only render the active layer.");
|
||||
RNA_def_property_ui_text(prop, "Single Layer", "Only render the active layer");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "active_layer_index", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "actlay");
|
||||
RNA_def_property_int_funcs(prop, "rna_SceneRenderData_active_layer_index_get", "rna_SceneRenderData_active_layer_index_set", "rna_SceneRenderData_active_layer_index_range");
|
||||
RNA_def_property_ui_text(prop, "Active Layer Index", "Active index in render layer array.");
|
||||
RNA_def_property_ui_text(prop, "Active Layer Index", "Active index in render layer array");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* engine */
|
||||
prop= RNA_def_property(srna, "engine", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, engine_items);
|
||||
RNA_def_property_enum_funcs(prop, "rna_SceneRenderData_engine_get", "rna_SceneRenderData_engine_set", "rna_SceneRenderData_engine_itemf");
|
||||
RNA_def_property_ui_text(prop, "Engine", "Engine to use for rendering.");
|
||||
RNA_def_property_ui_text(prop, "Engine", "Engine to use for rendering");
|
||||
RNA_def_property_update(prop, NC_WINDOW, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "multiple_engines", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_funcs(prop, "rna_SceneRenderData_multiple_engines_get", NULL);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Multiple Engines", "More than one rendering engine is available.");
|
||||
RNA_def_property_ui_text(prop, "Multiple Engines", "More than one rendering engine is available");
|
||||
|
||||
prop= RNA_def_property(srna, "use_game_engine", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_funcs(prop, "rna_SceneRenderData_use_game_engine_get", NULL);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Use Game Engine", "Current rendering engine is a game engine.");
|
||||
RNA_def_property_ui_text(prop, "Use Game Engine", "Current rendering engine is a game engine");
|
||||
|
||||
/* simplify */
|
||||
prop= RNA_def_property(srna, "use_simplify", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_SIMPLIFY);
|
||||
RNA_def_property_ui_text(prop, "Use Simplify", "Enable simplification of scene for quicker preview renders.");
|
||||
RNA_def_property_ui_text(prop, "Use Simplify", "Enable simplification of scene for quicker preview renders");
|
||||
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
|
||||
|
||||
prop= RNA_def_property(srna, "simplify_subdivision", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "simplify_subsurf");
|
||||
RNA_def_property_ui_range(prop, 0, 6, 1, 0);
|
||||
RNA_def_property_ui_text(prop, "Simplify Subdivision", "Global maximum subdivision level.");
|
||||
RNA_def_property_ui_text(prop, "Simplify Subdivision", "Global maximum subdivision level");
|
||||
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
|
||||
|
||||
prop= RNA_def_property(srna, "simplify_child_particles", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "simplify_particles");
|
||||
RNA_def_property_ui_text(prop, "Simplify Child Particles", "Global child particles percentage.");
|
||||
RNA_def_property_ui_text(prop, "Simplify Child Particles", "Global child particles percentage");
|
||||
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
|
||||
|
||||
prop= RNA_def_property(srna, "simplify_shadow_samples", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "simplify_shadowsamples");
|
||||
RNA_def_property_ui_range(prop, 1, 16, 1, 0);
|
||||
RNA_def_property_ui_text(prop, "Simplify Shadow Samples", "Global maximum shadow samples.");
|
||||
RNA_def_property_ui_text(prop, "Simplify Shadow Samples", "Global maximum shadow samples");
|
||||
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
|
||||
|
||||
prop= RNA_def_property(srna, "simplify_ao_sss", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "simplify_aosss");
|
||||
RNA_def_property_ui_text(prop, "Simplify AO and SSS", "Global approximate AA and SSS quality factor.");
|
||||
RNA_def_property_ui_text(prop, "Simplify AO and SSS", "Global approximate AA and SSS quality factor");
|
||||
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
|
||||
|
||||
prop= RNA_def_property(srna, "simplify_triangulate", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "simplify_flag", R_SIMPLE_NO_TRIANGULATE);
|
||||
RNA_def_property_ui_text(prop, "Skip Quad to Triangles", "Disables non-planer quads being triangulated.");
|
||||
RNA_def_property_ui_text(prop, "Skip Quad to Triangles", "Disables non-planer quads being triangulated");
|
||||
|
||||
/* Scene API */
|
||||
RNA_api_scene_render(srna);
|
||||
@@ -2545,7 +2545,7 @@ static void rna_def_scene_objects(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
RNA_def_property_struct_type(prop, "Object");
|
||||
RNA_def_property_pointer_funcs(prop, "rna_Scene_active_object_get", "rna_Scene_active_object_set", NULL);
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Active Object", "Active object for this scene.");
|
||||
RNA_def_property_ui_text(prop, "Active Object", "Active object for this scene");
|
||||
/* Could call: ED_base_object_activate(C, scene->basact);
|
||||
* but would be a bad level call and it seems the notifier is enough */
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_OB_ACTIVE, NULL);
|
||||
@@ -2570,7 +2570,7 @@ static void rna_def_scene_bases(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
RNA_def_property_struct_type(prop, "ObjectBase");
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "basact");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Active Base", "Active object base in the scene.");
|
||||
RNA_def_property_ui_text(prop, "Active Base", "Active object base in the scene");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_OB_ACTIVE, NULL);
|
||||
}
|
||||
|
||||
@@ -2599,7 +2599,7 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
/* Global Settings */
|
||||
prop= RNA_def_property(srna, "camera", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Camera", "Active camera used for rendering the scene.");
|
||||
RNA_def_property_ui_text(prop, "Camera", "Active camera used for rendering the scene");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "set", PROP_POINTER, PROP_NONE);
|
||||
@@ -2607,17 +2607,17 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
RNA_def_property_struct_type(prop, "Scene");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE|PROP_ID_SELF_CHECK);
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_Scene_set_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "Set Scene", "Background set scene.");
|
||||
RNA_def_property_ui_text(prop, "Set Scene", "Background set scene");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "world", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "World", "World used for rendering the scene.");
|
||||
RNA_def_property_ui_text(prop, "World", "World used for rendering the scene");
|
||||
RNA_def_property_update(prop, NC_SCENE|NC_WORLD, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ|PROP_UNIT_LENGTH);
|
||||
RNA_def_property_float_sdna(prop, NULL, "cursor");
|
||||
RNA_def_property_ui_text(prop, "Cursor Location", "3D cursor location.");
|
||||
RNA_def_property_ui_text(prop, "Cursor Location", "3D cursor location");
|
||||
RNA_def_property_ui_range(prop, -10000.0, 10000.0, 10, 4);
|
||||
RNA_def_property_update(prop, NC_WINDOW, NULL);
|
||||
|
||||
@@ -2640,7 +2640,7 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "lay", 1);
|
||||
RNA_def_property_array(prop, 20);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_Scene_layer_set");
|
||||
RNA_def_property_ui_text(prop, "Visible Layers", "Layers visible when rendering the scene.");
|
||||
RNA_def_property_ui_text(prop, "Visible Layers", "Layers visible when rendering the scene");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_LAYER, "rna_Scene_layer_update");
|
||||
|
||||
/* Frame Range Stuff */
|
||||
@@ -2701,7 +2701,7 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
/* Stamp */
|
||||
prop= RNA_def_property(srna, "stamp_note", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "r.stamp_udata");
|
||||
RNA_def_property_ui_text(prop, "Stamp Note", "User define note for the render stamping.");
|
||||
RNA_def_property_ui_text(prop, "Stamp Note", "User define note for the render stamping");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* Animation Data (for Scene) */
|
||||
@@ -2711,18 +2711,18 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "nla_tweakmode_on", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SCE_NLA_EDIT_ON);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* DO NOT MAKE THIS EDITABLE, OR NLA EDITOR BREAKS */
|
||||
RNA_def_property_ui_text(prop, "NLA TweakMode", "Indicates whether there is any action referenced by NLA being edited. Strictly read-only.");
|
||||
RNA_def_property_ui_text(prop, "NLA TweakMode", "Indicates whether there is any action referenced by NLA being edited. Strictly read-only");
|
||||
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_GRAPH, NULL);
|
||||
|
||||
|
||||
/* Nodes (Compositing) */
|
||||
prop= RNA_def_property(srna, "nodetree", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_ui_text(prop, "Node Tree", "Compositing node tree.");
|
||||
RNA_def_property_ui_text(prop, "Node Tree", "Compositing node tree");
|
||||
|
||||
prop= RNA_def_property(srna, "use_nodes", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "use_nodes", 1);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_Scene_use_nodes_set");
|
||||
RNA_def_property_ui_text(prop, "Use Nodes", "Enable the compositing node tree.");
|
||||
RNA_def_property_ui_text(prop, "Use Nodes", "Enable the compositing node tree");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* Sequencer */
|
||||
@@ -2735,7 +2735,7 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "keying_sets", PROP_COLLECTION, PROP_NONE);
|
||||
RNA_def_property_collection_sdna(prop, NULL, "keyingsets", NULL);
|
||||
RNA_def_property_struct_type(prop, "KeyingSet");
|
||||
RNA_def_property_ui_text(prop, "Keying Sets", "Keying Sets for this Scene.");
|
||||
RNA_def_property_ui_text(prop, "Keying Sets", "Keying Sets for this Scene");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "active_keying_set", PROP_POINTER, PROP_NONE);
|
||||
@@ -2743,13 +2743,13 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_editable_func(prop, "rna_Scene_active_keying_set_editable");
|
||||
RNA_def_property_pointer_funcs(prop, "rna_Scene_active_keying_set_get", "rna_Scene_active_keying_set_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "Active Keying Set", "Active Keying Set used to insert/delete keyframes.");
|
||||
RNA_def_property_ui_text(prop, "Active Keying Set", "Active Keying Set used to insert/delete keyframes");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "active_keying_set_index", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "active_keyingset");
|
||||
RNA_def_property_int_funcs(prop, "rna_Scene_active_keying_set_index_get", "rna_Scene_active_keying_set_index_set", "rna_Scene_active_keying_set_index_range");
|
||||
RNA_def_property_ui_text(prop, "Active Keying Set Index", "Current Keying Set index.");
|
||||
RNA_def_property_ui_text(prop, "Active Keying Set Index", "Current Keying Set index");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET, NULL);
|
||||
|
||||
/* Tool Settings */
|
||||
@@ -2776,7 +2776,7 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "use_gravity", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "physics_settings.flag", PHYS_GLOBAL_GRAVITY);
|
||||
RNA_def_property_ui_text(prop, "Global Gravity", "Use global gravity for all dynamics.");
|
||||
RNA_def_property_ui_text(prop, "Global Gravity", "Use global gravity for all dynamics");
|
||||
RNA_def_property_update(prop, 0, "rna_Physics_update");
|
||||
|
||||
/* Render Data */
|
||||
@@ -2790,40 +2790,40 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "timeline_markers", PROP_COLLECTION, PROP_NONE);
|
||||
RNA_def_property_collection_sdna(prop, NULL, "markers", NULL);
|
||||
RNA_def_property_struct_type(prop, "TimelineMarker");
|
||||
RNA_def_property_ui_text(prop, "Timeline Markers", "Markers used in all timelines for the current scene.");
|
||||
RNA_def_property_ui_text(prop, "Timeline Markers", "Markers used in all timelines for the current scene");
|
||||
|
||||
/* Audio Settings */
|
||||
prop= RNA_def_property(srna, "mute_audio", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "audio.flag", AUDIO_MUTE);
|
||||
RNA_def_property_ui_text(prop, "Audio Muted", "Play back of audio from Sequence Editor will be muted.");
|
||||
RNA_def_property_ui_text(prop, "Audio Muted", "Play back of audio from Sequence Editor will be muted");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "sync_audio", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "audio.flag", AUDIO_SYNC);
|
||||
RNA_def_property_ui_text(prop, "Audio Sync", "Play back and sync with audio from Sequence Editor for realtime playback.");
|
||||
RNA_def_property_ui_text(prop, "Audio Sync", "Play back and sync with audio from Sequence Editor for realtime playback");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "scrub_audio", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "audio.flag", AUDIO_SCRUB);
|
||||
RNA_def_property_ui_text(prop, "Audio Scrubbing", "Play audio from Sequence Editor while scrubbing.");
|
||||
RNA_def_property_ui_text(prop, "Audio Scrubbing", "Play audio from Sequence Editor while scrubbing");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "speed_of_sound", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "audio.speed_of_sound");
|
||||
RNA_def_property_range(prop, 0.01f, FLT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Speed of Sound", "Speed of sound for doppler effect calculation.");
|
||||
RNA_def_property_ui_text(prop, "Speed of Sound", "Speed of sound for doppler effect calculation");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "doppler_factor", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "audio.doppler_factor");
|
||||
RNA_def_property_range(prop, 0.0, FLT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Doppler Factor", "Pitch factor for doppler effect calculation.");
|
||||
RNA_def_property_ui_text(prop, "Doppler Factor", "Pitch factor for doppler effect calculation");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "distance_model", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "audio.distance_model");
|
||||
RNA_def_property_enum_items(prop, audio_distance_model_items);
|
||||
RNA_def_property_ui_text(prop, "Distance Model", "Distance model for distance attenuation calculation.");
|
||||
RNA_def_property_ui_text(prop, "Distance Model", "Distance model for distance attenuation calculation");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
/* Game Settings */
|
||||
|
||||
Reference in New Issue
Block a user