[Bf-blender-cvs] [27de412ca8d] blender2.8: Merge remote-tracking branch 'origin/master' into blender2.8
Lukas Stockner
noreply at git.blender.org
Thu Jun 14 22:56:19 CEST 2018
Commit: 27de412ca8de4edad99a46ebdb8aadd7003e42a6
Author: Lukas Stockner
Date: Thu Jun 14 22:54:42 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB27de412ca8de4edad99a46ebdb8aadd7003e42a6
Merge remote-tracking branch 'origin/master' into blender2.8
===================================================================
===================================================================
diff --cc intern/cycles/blender/addon/ui.py
index c5eafe9ebfb,2b11a2eefb0..2f9c486367a
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@@ -1348,32 -1209,20 +1348,34 @@@ class CYCLES_WORLD_PT_settings(CyclesBu
cworld = world.cycles
# cscene = context.scene.cycles
- split = layout.split()
+ col = layout.column()
- col = split.column()
+class CYCLES_WORLD_PT_settings_surface(CyclesButtonsPanel, Panel):
+ bl_label = "Surface"
+ bl_parent_id = "CYCLES_WORLD_PT_settings"
+ bl_context = "world"
- col.label(text="Surface:")
+ @classmethod
+ def poll(cls, context):
+ return context.world and CyclesButtonsPanel.poll(context)
+
+ def draw(self, context):
+ layout = self.layout
+ layout.use_property_split = True
+
+ world = context.world
+ cworld = world.cycles
+
+ col = layout.column()
- col.prop(cworld, "sample_as_light", text="Multiple Importance")
+ col.prop(cworld, "sampling_method", text="Sampling")
- sub = col.column(align=True)
+ sub = col.column()
- sub.active = cworld.sample_as_light
- sub.prop(cworld, "sample_map_resolution")
+ sub.active = cworld.sampling_method != 'NONE'
+ subsub = sub.row(align=True)
+ subsub.active = cworld.sampling_method == 'MANUAL'
+ subsub.prop(cworld, "sample_map_resolution")
if use_branched_path(context):
- subsub = sub.row(align=True)
+ subsub = sub.column(align=True)
subsub.active = use_sample_all_lights(context)
subsub.prop(cworld, "samples")
sub.prop(cworld, "max_bounces")
diff --cc intern/cycles/blender/addon/version_update.py
index 611ba5cae70,dc28bc647b5..2db4def9dcb
--- a/intern/cycles/blender/addon/version_update.py
+++ b/intern/cycles/blender/addon/version_update.py
@@@ -434,13 -428,11 +430,22 @@@ def do_versions(self)
# Switch to squared roughness convention
square_roughness_nodes_insert()
+ if bpy.data.version <= (2, 80, 15):
+ # Copy cycles hair settings to internal settings
+ for part in bpy.data.particles:
+ cpart = part.get("cycles", None)
+ if cpart:
+ part.shape = cpart.get("shape", 0.0)
+ part.root_radius = cpart.get("root_width", 1.0)
+ part.tip_radius = cpart.get("tip_width", 0.0)
+ part.radius_scale = cpart.get("radius_scale", 0.01)
+ part.use_close_tip = cpart.get("use_closetip", True)
++
+ for world in bpy.data.worlds:
+ cworld = world.cycles
+ # World MIS
+ if not cworld.is_property_set("sampling_method"):
+ if cworld.get("sample_as_light", False):
+ cworld.sampling_method = 'MANUAL'
+ else:
+ cworld.sampling_method = 'NONE'
diff --cc intern/cycles/blender/blender_session.cpp
index eec13d04d7d,4affd0479b0..8e76a4c0061
--- a/intern/cycles/blender/blender_session.cpp
+++ b/intern/cycles/blender/blender_session.cpp
@@@ -141,14 -139,12 +141,18 @@@ void BlenderSession::create_session(
scene->image_manager->builtin_image_pixels_cb = function_bind(&BlenderSession::builtin_image_pixels, this, _1, _2, _3, _4, _5);
scene->image_manager->builtin_image_float_pixels_cb = function_bind(&BlenderSession::builtin_image_float_pixels, this, _1, _2, _3, _4, _5);
+ #ifdef WITH_OCIO
+ scene->film->set_color_config(OCIO_getCurrentConfig());
+ #endif
+
session->scene = scene;
+ /* There is no single depsgraph to use for the entire render.
+ * So we need to handle this differently.
+ *
+ * We could loop over the final render result render layers in pipeline and keep Cycles unaware of multiple layers,
+ * or perhaps move syncing further down in the pipeline.
+ */
/* create sync */
sync = new BlenderSync(b_engine, b_data, b_scene, scene, !background, session->progress);
BL::Object b_camera_override(b_engine.camera_override());
diff --cc intern/cycles/render/light.cpp
index d45d4543e16,20c6a53e58f..5a58ef1aa8e
--- a/intern/cycles/render/light.cpp
+++ b/intern/cycles/render/light.cpp
@@@ -119,9 -118,8 +118,9 @@@ NODE_DEFINE(Light
SOCKET_FLOAT(sizeu, "Size U", 1.0f);
SOCKET_VECTOR(axisv, "Axis V", make_float3(0.0f, 0.0f, 0.0f));
SOCKET_FLOAT(sizev, "Size V", 1.0f);
+ SOCKET_BOOLEAN(round, "Round", false);
- SOCKET_INT(map_resolution, "Map Resolution", 512);
+ SOCKET_INT(map_resolution, "Map Resolution", 0);
SOCKET_FLOAT(spot_angle, "Spot Angle", M_PI_4_F);
SOCKET_FLOAT(spot_smooth, "Spot Smooth", 0.0f);
More information about the Bf-blender-cvs
mailing list