Dalai Felinto
146a88dd60
Remove all instance of OBACT from particle_edit.c and related changes
2017-03-02 17:14:59 +01:00
Dalai Felinto
209021a703
Remove all instances of OBACT from drawobject.c and related changes
2017-03-02 17:09:24 +01:00
Dalai Felinto
083bc48816
Remove OBACT from rigidbody_constraint.c and remove uneeded sanity check
2017-03-02 17:09:24 +01:00
Dalai Felinto
aa845eed1e
Remove tons of OBACT
...
There are now only referenced in:
* drawobject.c
* particle_edit.c
* space_image.c (a single case to be handled on workspace branch)
* rigidbody_constraint.c (to be handled in the following commit)
2017-03-02 17:09:24 +01:00
Clément Foucault
561d11c5e6
Edit Mesh overlay: pack normals with face centers.
...
Needed for face normals.
2017-03-02 15:03:40 +01:00
Clément Foucault
0b6fa1a0fb
Mesh batch cache: fix memory leak
2017-03-02 14:20:36 +01:00
Dalai Felinto
7b1de2b407
Revert "Depsgraph: Add placeholder function to handle objects update"
...
This reverts commit 9023abbf27 .
2017-03-02 13:05:17 +01:00
Dalai Felinto
4bf9a65da9
Fix mesh edit wasn't updating for new objects
...
The problem was that we were updating the mesh cache on
BKE_object_eval_shading, not on mesh change.
2017-03-02 12:58:30 +01:00
Dalai Felinto
007fcfc193
Fixup for layer rename unittest (rB3baa186724)
2017-03-02 09:52:33 +01:00
Dalai Felinto
a65af5d0cf
Layers unittest: isolate the depsgraph crash in individual tests
...
(and re-order the tests alphabetically)
2017-03-02 09:40:17 +01:00
Mike Erwin
869f2940c2
Gawain: allow use of final 2 bits of 10_10_10_2 format
...
Requested by @fclem
2017-03-02 03:16:02 -05:00
Clément Foucault
b463cd2ab8
Edit Mode overlay: Moved Shaders to draw modules and resolved some draw issue.
...
We don't want to clutter gpu_shader.c with engine specific code
Added face's center dot
Simplified loose vert shader
2017-03-02 01:08:32 +01:00
Clément Foucault
aa102283da
Edit Mode overlay: Added theme color via UBO.
2017-03-02 01:08:32 +01:00
Clément Foucault
043c90fdcd
Edit Mode overlay: fast navigate
2017-03-02 01:08:32 +01:00
Clément Foucault
26fc6c71c4
Edit Mode overlays: separate multiple shaders for loose edges and verts
2017-03-02 01:08:32 +01:00
Julian Eisel
3baa186724
Add tests for layer renaming
...
Could have an own file for each test, but this is good enough.
With great help from @dfelinto, thanks!
2017-03-01 20:14:20 +01:00
Julian Eisel
0f7a664731
Fix collection renaming not checking for unique name in entire hierarchy
...
Only checked for unique name in direct children of the master
collection.
Also added missing listener for outliner.
2017-03-01 20:13:40 +01:00
Julian Eisel
18684e546f
Outliner: Make sure collection name is unique after renaming
2017-03-01 16:34:16 +01:00
Julian Eisel
b00b9dadd8
Outliner: Support dragging object into collection
...
Doing this will add the object to the collection.
2017-03-01 15:35:21 +01:00
Campbell Barton
c1f43c9dc6
Cleanup: warnings
2017-03-02 00:36:33 +11:00
Campbell Barton
8901263b5f
Merge branch 'master' into blender2.8
2017-03-02 00:22:13 +11:00
Campbell Barton
714e85b534
Cleanup: code-style, duplicate header
2017-03-02 00:16:36 +11:00
raa
32c5f3d772
Fix text and icon positioning issues
2017-03-01 16:11:21 +03:00
Antonioya
f64df0e102
Fix error moving keyframes in graph editor after refactor base
2017-03-01 13:08:15 +01:00
Sergey Sharybin
f0cf15b5c6
Task scheduler: Remove counter of done tasks
...
This was only used for progress report, and it's wrong because:
- Pool might in theory be re-used by different tasks
- We should not make any decision based on scheduling stats
Proper way is to take care of progress by the task itself.
2017-03-01 12:45:51 +01:00
Sergey Sharybin
351c9239ed
Cleanup: Use explicit unsigned int in atomics
2017-03-01 12:01:19 +01:00
Antonio Vazquez
3626521346
Base Refactor Tasks: Fix some legacy bases for dopesheet
2017-03-01 11:41:23 +01:00
Antonio Vazquez
e142793815
Base Refactor Tasks: Change selection flags
2017-03-01 11:31:10 +01:00
Antonio Vazquez
14627cc2ee
Base Refactor Tasks for gpencil filter
2017-03-01 11:21:06 +01:00
Dalai Felinto
6ee70312bb
Dopesheet: fix crash when dragging keyframes
2017-03-01 10:43:04 +01:00
Julian Eisel
0b0347dcca
Cleanup: Rename outliner enum
2017-03-01 11:28:17 +01:00
Julian Eisel
512fb74980
Outliner: Make deleting collections from "All Collections" mode work
2017-02-28 22:18:11 +01:00
Julian Eisel
fcbae6c3b3
Outliner: Highlight active layer collection in "All Collections" mode
2017-02-28 21:58:07 +01:00
Julian Eisel
f35907444e
Cleanup: Add outliner_utils.c, move functions into it
2017-02-28 21:37:15 +01:00
Mike Erwin
3176bb8346
clean up GL / GPU #includes
2017-02-28 15:30:39 -05:00
Mike Erwin
2a8dd3c5ff
remove GPU_basic_shader calls from wm_gesture
...
Gestures are drawn with specific built-in shaders now.
2017-02-28 15:30:39 -05:00
Mike Erwin
7b1e5e8620
remove unused code from interface_icons
...
No longer depends on basic shader API
2017-02-28 15:30:39 -05:00
Mike Erwin
2fcdb6df10
remove unused code from uvedit_draw
...
Keep USE_EDBM_LOOPTRIS code paths, remove not-USE_EDBM_LOOPTRIS paths.
Discussed with @LucaRood in IRC since he worked on this file recently.
2017-02-28 15:30:39 -05:00
Julian Eisel
c0e055fa7e
Outliner: Delete all selected collections, not just active one
...
There were some issues with how we store outliner tree elements:
Apparently the only removable elements have been data-blocks so far.
When recreating the TreeElements, their TreeStoreElem instances were
mainly identified by their ID pointer. However non-data-blocks mostly
depend on an index. For collections, such an index isn't a reliable
measure though if we want to allow removing items. Depending on it for
identifying the TreeStoreElem instance would cause some quite noticeable
glitches (wrong highlights, two elements sharing highlight, etc).
For now I've solved that by actually removing the TreeStoreElem that
represents the removed element. A little limitation of this is that
after undoing the removal, some information might get lost, like
flags to store selection, or opened/closed state.
A better solution that would also fix this issue would be having a real
unique identifier for each non-data-block element, like an idname or even
its data-pointer. Not sure if we can get those to work reliable with
file read/write though, would have to investigate...
Also added a general Outliner tree traversal utility.
2017-02-28 21:15:51 +01:00
Mike Erwin
5e889ebf19
OpenGL: no more display lists
...
Part of the OpenGL core profile upgrade (T49165)
Use the Batch drawing API (GPU_batch.h) when you want do draw something multiple times.
2017-02-28 13:15:11 -05:00
Aaron Carlisle
c1012c6c3a
Cleanup: update copyright and Blender description
2017-02-28 12:04:43 -05:00
Sergey Sharybin
87f236cd10
Cycles: Fix division by zero in volume code which was producing -nan
2017-02-28 17:33:06 +01:00
Antonio Vazquez
54ed1b7324
Fix Dopesheet and Curve editor to use new bases in SceneLayer instead of old base.
...
(see D2538)
Thanks to dfelinto for his support.
2017-02-28 17:16:46 +01:00
Clément Foucault
7175838b61
Draw Manager: Fix ortho grid in front of overlays.
2017-02-28 15:15:34 +01:00
Clément Foucault
96d63d2232
Edit Mesh overlays: fix half cut vertices.
...
Artifacts still remained when 2 vertices were linedup in orthographic mode or with very acute vertex angles.
This commit fix that by adding even more geometry.
2017-02-28 15:00:16 +01:00
Clément Foucault
677f066634
Edit Mesh overlays: added looses edges and verts as triangle.
...
We loose a bit of memory for (more?) performance.
2017-02-28 14:31:16 +01:00
Julian Eisel
6af21b4e7f
Highlight active collection in outliner
2017-02-28 14:11:15 +01:00
Sergey Sharybin
efe78d824e
Fix/workaround T48549: Crash baking high-to-low-poly normal map in cycles
...
For now only prevent crash.
2017-02-28 14:08:33 +01:00
Sergey Sharybin
a581b65822
Fix T49936: Cycles point density get's it's bounding box from basis shape key
2017-02-28 12:41:56 +01:00
Mike Erwin
2de9bf1138
skip OpenGL debug logic on Apple
...
ifdef out most debugging code since Apple does not implement any debug extensions. We can revisit this if they ever do (don't expect that).
Changed output message so Mac users don't think --debug-gpu is broken.
2017-02-28 04:38:30 -05:00