External render engines can now render previews as well, disabled by
[blender.git] / source / blender / makesrna / intern / rna_render.c
index 710a22ba17a4c430861e8dfc87757b932f70e573..28d309c2d375817a9655faff9638be09d9da6305 100644 (file)
@@ -279,6 +279,10 @@ static void rna_def_render_engine(BlenderRNA *brna)
        RNA_def_property_string_sdna(prop, NULL, "type->name");
        RNA_def_property_flag(prop, PROP_REGISTER);
 
+       prop= RNA_def_property(srna, "bl_preview", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_DO_PREVIEW);
+       RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
+
        RNA_define_verify_sdna(1);
 }