Cycles: add experimental preference to replace magic debug value 256
Previously you'd have to run with --debug-value 256, now just make it a preference so the Debug panel can be always available for developers.
This commit is contained in:
@@ -621,8 +621,9 @@ typedef struct UserDef_Experimental {
|
||||
char use_undo_legacy;
|
||||
char use_new_particle_system;
|
||||
char use_new_hair_type;
|
||||
char use_cycles_debug;
|
||||
/** `makesdna` does not allow empty structs. */
|
||||
char _pad0[5];
|
||||
char _pad0[4];
|
||||
} UserDef_Experimental;
|
||||
|
||||
#define USER_EXPERIMENTAL_TEST(userdef, member) \
|
||||
|
||||
@@ -6079,6 +6079,11 @@ static void rna_def_userdef_experimental(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_new_hair_type", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "use_new_hair_type", 1);
|
||||
RNA_def_property_ui_text(prop, "New Hair Type", "Enable the new hair type in the ui");
|
||||
|
||||
prop = RNA_def_property(srna, "use_cycles_debug", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "use_cycles_debug", 1);
|
||||
RNA_def_property_ui_text(prop, "Cycles Debug", "Enable Cycles debugging options for developers");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_update");
|
||||
}
|
||||
|
||||
static void rna_def_userdef_addon_collection(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
|
||||
Reference in New Issue
Block a user