Merge branch 'master' into blender2.8
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
#include "BKE_camera.h"
|
||||
#include "BKE_object.h"
|
||||
#include "BKE_sequencer.h"
|
||||
|
||||
#include "DEG_depsgraph.h"
|
||||
#include "DEG_depsgraph_build.h"
|
||||
@@ -127,6 +128,14 @@ static void rna_Camera_background_images_clear(Camera *cam)
|
||||
WM_main_add_notifier(NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, cam);
|
||||
}
|
||||
|
||||
static void rna_Camera_dof_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
/* TODO(sergey): Can be more selective here. */
|
||||
BKE_sequencer_cache_cleanup();
|
||||
BKE_sequencer_preprocessed_cache_cleanup();
|
||||
WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static void rna_def_camera_background_image(BlenderRNA *brna)
|
||||
@@ -511,7 +520,7 @@ void RNA_def_camera(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0.0f, 5000.0f, 1, 2);
|
||||
RNA_def_property_ui_text(prop, "DOF Distance", "Distance to the focus point for depth of field");
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_dof_update");
|
||||
|
||||
/* Stereo Settings */
|
||||
prop = RNA_def_property(srna, "stereo", PROP_POINTER, PROP_NONE);
|
||||
|
||||
Reference in New Issue
Block a user