Dalai Felinto
c07f2bc891
Fix T55628: Crash when creating new material slots
...
We need to update the geometry when resizing the object material slots.
2018-06-26 16:00:04 +02:00
Vuk Gardašević
43d27095a3
UI: Make Mesh shading menu consistent with the other menus
2018-06-26 14:29:21 +02:00
William Reynish
25caedc4ba
UI: Tweaks to Cycles Bake panel
...
-Correctly aligns bake options in the column
-Updated Metadata panel with right-aligned checkboxes for consistency
2018-06-26 14:17:02 +02:00
Bastien Montagne
c1459a1e7f
Fix T55630: update issue between Object and TexPaint modes.
...
Need to flush mesh DEG COW here, for some reason...
2018-06-26 12:36:38 +02:00
Campbell Barton
cdd915e9e9
UI: status bar cursor keymap display
...
Show mouse button actions in status bar, based on context,
modifiers and active tool.
See: T54861
2018-06-26 12:18:54 +02:00
Campbell Barton
4adf19e80b
Icons: mouse buttons & drag
...
Monochrome icons from jendryzch
2018-06-26 12:15:39 +02:00
Joshua Leung
e17285a381
Tweak: Try to make the purpose of the collection/search fields clearer
...
Note: The labels in this panel are still WIP. There are probably clearer
names for some of these, including maybe even omitting some.
2018-06-26 21:44:14 +12:00
Joshua Leung
c0a8a29ae6
AnimEditors: Remove the toggles to enable name/collection-based filtering
...
Now the name/collection filters run when there's some text,
and don't run when the box is empty, thus reducing an extra
step that was needed before these options could be used.
2018-06-26 21:44:14 +12:00
Joshua Leung
5f545dbde8
AnimEditors UI: Move less frequently used filtering options to a "Filters" popovers
...
This commit is an experiment in using popovers as a place to house some
of the filtering options for animation editors, in line with what's taking
place in the Outliner with the filtering popover there too.
Right now, the most frequently used/changed options are still available
on the headers (i.e. the "Only Selected"/"Hidden"/search fields), while
everything else (i.e. the per-datablock filters, which were already hidden
behind a collapsed-toggle button before) now live in the popover.
2018-06-26 21:44:14 +12:00
Bastien Montagne
c795505a2c
Cleanup: dyntopo sculpt draw update: use same BM_face_as_array_vert_tri for indexbuf generation.
...
It's cleaner, and actually assert that BMFace is a triangle. Same code
as when generating vertexbuf for flat shading!
2018-06-26 11:43:17 +02:00
Bastien Montagne
dad4703ec5
Fix T55320: Sculpt Mode with dyntopo and smooth shading drawing bug.
...
We have to discard the batch in smooth case, because we are modifying
the index buffer (flat shading don't need it, only changes vertex buffer
on redraw, which is safe).
Many thanks to @fclem for his help on debuging/understanding what was
wrong here!
2018-06-26 11:43:17 +02:00
Sergey Sharybin
42fde5d32b
Fix memory leak when duplicating particles
2018-06-26 11:31:28 +02:00
Sergey Sharybin
a9ab0c1a7c
Depsgraph: Tag relations for update when particle dupli-collection changes
2018-06-26 11:27:41 +02:00
Dalai Felinto
d6ac293bd4
Cleanup: comment
2018-06-26 11:07:29 +02:00
Sergey Sharybin
cfb50463be
Free crash when freeing object caches from duplicator
2018-06-26 10:53:05 +02:00
Campbell Barton
ea339dc62c
Merge branch 'master' into blender2.8
2018-06-26 09:34:13 +02:00
Campbell Barton
df237b964b
PyAPI: add ImBuf.copy
...
DD348 by @kilon w/ edits.
2018-06-26 09:31:57 +02:00
Campbell Barton
a69f985f40
PyAPI: move deep-copy args check to py_capi_utils
2018-06-26 09:31:57 +02:00
Campbell Barton
e6825946d0
Cleanup: style, pep8
2018-06-26 08:45:13 +02:00
Campbell Barton
29182dd570
Cleanup: style
2018-06-26 08:35:35 +02:00
Lukas Stockner
87f598fd3f
Cycles: Fix wrong row count for World MIS CDF calculation
2018-06-26 05:35:30 +02:00
Stefan Werner
d53093953f
Turned off clang warnings in third party includes.
...
The latest clang compiler (at least the one in Xcode 9.4.1) warns about the register keyword and macro expansions using defined().
Since these warnings come from third party code, we can't address them directly in Blender. Silencing them via #pramgas will
at least keep the warnings during a build down to the ones that are relevant to Blender code.
2018-06-25 23:02:01 +02:00
Brecht Van Lommel
4aee554345
Fix crash with files saved with missing render slots.
2018-06-25 20:29:51 +02:00
Pablo Vazquez
9e88892f8f
UI: Use background color for reports
...
At the moment it's using a hardcoded gray color that conflicts with
themes using gray for the header text. Instead use a slightly brighter
background color to make it stand, yet still use a theme setting.
2018-06-25 18:57:51 +02:00
Sergey Sharybin
25a223c3bd
Draw: Use more proper particles index lookup
2018-06-25 18:22:27 +02:00
Sergey Sharybin
540b99bd28
Cycles: Free evaluated meshed when we are done with object
2018-06-25 17:28:46 +02:00
Sergey Sharybin
7cd86cd1fe
Cycles: Fix memory leak with session
...
We didn't check for sync object being already allocated.
In fact, we simply need to use proper function to free
session.
2018-06-25 17:28:46 +02:00
Brecht Van Lommel
c2110213ca
Physics: update softbody and dynamic paint to get colliders from depsgraph.
...
Because looping over the scene is unsafe and slow.
2018-06-25 17:15:07 +02:00
Brecht Van Lommel
2c9b32949b
Cleanup: refactor depsgraph physics API functions.
2018-06-25 17:15:07 +02:00
William Reynish
26251282e0
UI: Single-column layout for Force Fields and Particles
...
Force Fields and Falloff are now simpler and more compact
by removing unnecesary labels (there was a text label just for one option)
Particle Force Fields Falloff is now a sub-panel of each effector type,
rather than just as a section with label.
2018-06-25 17:04:40 +02:00
William Reynish
51e077c5c0
UI: Single-column layout for View Layer, passes and World
2018-06-25 17:02:50 +02:00
William Reynish
153195da22
UI: Single-column layout for Texture Color
2018-06-25 17:01:54 +02:00
William Reynish
5ddba52029
UI: Single-column layout for Shape Keys and Geometry Data
2018-06-25 17:00:00 +02:00
Bastien Montagne
eefe878660
Fix T55360: marker-based Camera switch focal length bug.
...
Scene was missing DEG tag update when its camera was changed based on
active 'camera marker'.
2018-06-25 16:21:24 +02:00
Bastien Montagne
476b4c415c
Fix T55493: Sculpting on smooth shaded bug.
...
Undo was not tagging PBVH to update normals too...
2018-06-25 14:15:08 +02:00
Brecht Van Lommel
38d6e82d1a
Fix use of non-evaluated collision and effector objects.
...
Only enabled objects in the view layer should be used, while temporarily
hidden objects should still have an effect.
2018-06-25 14:11:55 +02:00
Brecht Van Lommel
817bf582c2
Cleanup: rename object base flags to be more clear.
2018-06-25 14:09:17 +02:00
Brecht Van Lommel
a99dcab148
Depsgraph: cache collision relations, for performance and stability.
...
Same reasoning as effector relations in earlier commit.
2018-06-25 13:35:41 +02:00
Bastien Montagne
5b3ff9f7d8
Cleanup: Move colorband handling from DM to mesh_runtime universe.
2018-06-25 13:04:24 +02:00
Pablo Vazquez
e10eb5bcb8
UI: In user preferences group Developers Extra and Python Tooltips
...
Move Navigation Manipulator toggle next to Mini Axis as they are related
(and in the future merged into one pulldown) and rename Manipulator
to "Transform Manipulator" to make it clear they're different kinds
of manipulators. Also move to the first column next to other viewport settings.
2018-06-25 12:58:28 +02:00
Bastien Montagne
e97237892c
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_view.c
source/blender/gpu/GPU_draw.h
source/blender/gpu/GPU_material.h
source/blender/gpu/intern/gpu_draw.c
source/blender/gpu/intern/gpu_material.c
source/blender/makesrna/intern/rna_userdef.c
source/blender/windowmanager/intern/wm_files_link.c
source/blender/windowmanager/intern/wm_init_exit.c
source/creator/creator_args.c
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
source/gameengine/Ketsji/KX_PythonInit.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
2018-06-25 12:50:32 +02:00
Sergey Sharybin
cdee53edfc
Cycles: Cleanup, indentation
2018-06-25 12:39:44 +02:00
Bastien Montagne
8a7f317666
Cleanup: Nuke most of G.main from GPU code.
2018-06-25 12:32:48 +02:00
Dalai Felinto
0145daa09b
Outliner: Make search always work
...
This was a flag in early 2.8 to allow users to hide the entire search prop.
Now since we want it fully expanded at all times, it makes no more sense.
2018-06-25 12:15:12 +02:00
Campbell Barton
861b0ec417
UI: Right align check-box for extra text space
...
See: T54951
2018-06-25 12:06:51 +02:00
Campbell Barton
29c1069244
Cleanup: code style
2018-06-25 12:06:51 +02:00
Bastien Montagne
f33cb522dd
Cleanup: Few more validation of G_MAIN usages...
2018-06-25 12:02:20 +02:00
Sergey Sharybin
7a4d5b78ea
Depsgraph: Add missing nodes and relations for speaker
2018-06-25 11:54:12 +02:00
Sybren A. Stüvel
c448c0a67f
RigidBody: Replaced 'if' with 'switch'
2018-06-25 11:24:55 +02:00
Sybren A. Stüvel
eb56ca3119
Rigid body: compute looptris on original mesh instead of CoW copy
2018-06-25 11:20:06 +02:00