forked from bartvdbraak/blender
World Stars:
* Remove remaining star color code, was unused. Marked as deprecated in DNA.
This commit is contained in:
parent
79a389ee37
commit
aa363800b0
@ -703,14 +703,7 @@ static const char *world_adrcodes_to_paths (int adrcode, int *array_index)
|
||||
return "mist.start";
|
||||
case WO_MISTHI:
|
||||
return "mist.height";
|
||||
|
||||
/* Star Color is unused -- recommend removal */
|
||||
/* case WO_STAR_R:
|
||||
*array_index= 0; return "stars.color";
|
||||
case WO_STAR_G:
|
||||
*array_index= 1; return "stars.color";
|
||||
case WO_STAR_B:
|
||||
*array_index= 2; return "stars.color"; */
|
||||
|
||||
case WO_STAR_R:
|
||||
case WO_STAR_G:
|
||||
case WO_STAR_B:
|
||||
|
@ -95,7 +95,7 @@ typedef struct World {
|
||||
|
||||
float misi, miststa, mistdist, misthi;
|
||||
|
||||
float starr, starg, starb, stark;
|
||||
float starr, starg, starb, stark; /* Deprecated */
|
||||
float starsize, starmindist;
|
||||
float stardist, starcolnoise;
|
||||
|
||||
|
@ -461,13 +461,6 @@ static void rna_def_world_stars(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0, 1);
|
||||
RNA_def_property_ui_text(prop, "Color Randomization", "Randomize star colors");
|
||||
RNA_def_property_update(prop, 0, "rna_World_stars_update");
|
||||
|
||||
/* unused
|
||||
prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "starr");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Color", "Stars color");
|
||||
RNA_def_property_update(prop, 0, "rna_World_update");*/
|
||||
}
|
||||
|
||||
void RNA_def_world(BlenderRNA *brna)
|
||||
|
Loading…
Reference in New Issue
Block a user