64ec05b64d
Cleanup: remove some useless BKE_library and BKE_main includes.
...
Makes it simpler to make some changes...
Also fix order of some includes (use alphabetical please).
2018-11-07 20:58:54 +01:00
4b2110fc86
Cleanup: Remove 'BKE_library.h' include from 'BKE_main.h'
...
That kind of implicit includes should really only be done when totally,
absolutely necessary, and ideally only with rather simple 'second-level'
headers.
Otherwise not being explicit with includes always end up biting in
unexpected ways...
2018-11-07 20:58:53 +01:00
f9f67e0239
Mesh: remove DerivedMesh from various places
2018-10-15 14:29:46 +11:00
fe1befcadf
Modifier: remove derived mesh call for bind
2018-10-12 18:39:24 +11:00
58adc58661
Merge branch 'master' into blender2.8
2018-09-27 15:49:59 +02:00
e4284d06ad
Fix T56899: mesh deform bind does not work.
2018-09-26 14:51:08 +02:00
3614d9d2a2
Cleanup: Remove some DerivedMesh wrappers for modifiers
...
Specifically the deformVerts_DM, deformMatrices_DM, deformVertsEM_DM and deformMatricesEM_DM functions are not used anymore.
Reviewer: brecht
2018-09-19 17:33:03 +02:00
61462ab2b4
Multires: Use more clear naming
...
There are so many reshapes now, and one more is to come.
Better be explicit.
2018-09-12 16:31:04 +02:00
ae57383648
Cleanup: comment blocks
2018-09-02 18:28:27 +10:00
e17164aca3
Cleanup, unused variable
2018-08-22 17:45:56 +02:00
564a378bd1
Multires: Remove another unused argument from reshape function
2018-08-22 16:59:00 +02:00
9dd279cbdf
Multires: Remove unused function argument
2018-08-22 16:07:57 +02:00
642c6d2fc9
Multires: Cleanup, naming and bool type
2018-08-16 14:42:06 +02:00
8efd7be41c
UI: hide redo panel for move up/down operators
2018-08-16 08:42:36 +10:00
1f78e86070
Fix modifier operators not working from Python API as before.
...
The poll function required the modifier to be in the context, but these
operators also accept a "modifier" string property as well.
2018-08-14 13:25:08 +02:00
d7ae76fa35
More helpful tooltip when trying to apply constructive modifiers on curves
...
Suggested by user aa311
2018-08-14 12:06:13 +02:00
f06884b18a
Cleanup: style, duplicate includes
2018-07-31 20:11:55 +10:00
66da2f537a
New Grease Pencil object for 2D animation
...
This commit merge the full development done in greasepencil-object branch and include mainly the following features.
- New grease pencil object.
- New drawing engine.
- New grease pencil modes Draw/Sculpt/Edit and Weight Paint.
- New brushes for grease pencil.
- New modifiers for grease pencil.
- New shaders FX.
- New material system (replace old palettes and colors).
- Split of annotations (old grease pencil) and new grease pencil object.
- UI adapted to blender 2.8.
You can get more info here:
https://code.blender.org/2017/12/drawing-2d-animation-in-blender-2-8/
https://code.blender.org/2018/07/grease-pencil-status-update/
This is the result of nearly two years of development and I want thanks firstly the other members of the grease pencil team: Daniel M. Lara, Matias Mendiola and Joshua Leung for their support, ideas and to keep working in the project all the time, without them this project had been impossible.
Also, I want thanks other Blender developers for their help, advices and to be there always to help me, and specially to Clément Foucault, Dalai Felinto, Pablo Vázquez and Campbell Barton.
2018-07-31 10:50:43 +02:00
cfe2c3213f
Fix T55965: shrinkwrap modifier apply not working.
2018-07-13 18:21:58 +02:00
0c8452ad99
Ocean Modifier: removed duplicated code
...
Some code was copied with 'keep in sync with xxx' comments added to it.
2018-07-10 12:00:58 +02:00
de55ae56ae
Ocean Modifier: refactored the delayed-refresh approach
...
The approach of setting 'refresh' flags on the modifier, and performing
the associated actions when the modifier is being evaluated, is a bad
one. Instead, we use the separation of the original and the evaluated
copy to 'refresh' certain things (because they simply aren't set at all
on the original). Other actions are now done directly with BKE_ocean_xxx
functions on the original data, intead of during evaluation.
2018-07-10 12:00:58 +02:00
9e4d667c2c
SoftBody: refactored sbFree()
...
This prevents having to wrap each call to sbFree() in an if(ob->soft)
condition and assign ob->soft = NULL after calling.
Furthermore, passing `Object *` allows us to change freeing behaviour
depending on whether the object is an evaluated copy or an original (not
done in this commit yet).
2018-07-04 11:22:57 +02:00
b076b3853c
Merge branch 'master' into blender2.8
2018-07-02 12:03:56 +02:00
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
e65d7665f1
Removed most calls to modifier_deformVerts_DM_deprecated()
...
None of those calls actually passed a DerivedMesh.
2018-06-28 16:01:02 +02:00
888fb065a4
Modifiers: Remove remaining parts of md->scene
2018-06-22 15:12:03 +02:00
c2fa82e7a4
Multires: Move away from using scene from modifier data
2018-06-22 15:12:03 +02:00
31d916210c
Cleanup: remove DM from 'join as shape' operator.
...
Also deduplicated the 'mesh as shapekey' code, we had kind of two funcs
doing the same thing here...
2018-06-21 18:26:12 +02:00
6427141f7b
Modifiers: Stop using md->scene in isDisabled() callback
...
This is first commit in series of changes to get rid of md->scene.
2018-06-21 18:04:05 +02:00
e1dff01e29
Depsgraph: add some missing depsgraph tags when relations change.
2018-06-20 18:12:48 +02:00
1a79c6d360
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/particle.c
2018-06-13 11:02:48 +02:00
67e8c1e1c7
Cleanup: remove more G.main from BKE area.
2018-06-13 10:57:10 +02:00
43eebdfebd
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/collada/DocumentImporter.cpp
source/blender/editors/include/ED_object.h
source/blender/editors/object/object_modifier.c
2018-06-12 12:58:31 +02:00
be57cf9b2a
Cleanup: remove moar G.main from BKE area.
2018-06-12 12:53:27 +02:00
d0956e9cb3
Cleanup: Moar G.main removal of Hell.
...
This commit actually adds some G.main... but at much, much higher level
than the ones it removes, so should still be better ;)
2018-06-11 12:15:14 +02:00
54f9cd5283
Cleanup: Nuke moar G.main usages...
2018-06-07 11:11:46 +02:00
bb7202495a
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/collada/ArmatureExporter.cpp
source/blender/collada/ArmatureExporter.h
source/blender/collada/DocumentExporter.cpp
source/blender/collada/DocumentExporter.h
source/blender/collada/SceneExporter.cpp
source/blender/collada/SceneExporter.h
source/blender/collada/collada.cpp
source/blender/collada/collada.h
source/blender/editors/armature/armature_edit.c
source/blender/editors/armature/editarmature_retarget.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/include/ED_armature.h
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_screen.h
source/blender/editors/io/io_collada.c
source/blender/editors/object/object_transform.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/screen/screen_ops.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_window.c
source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-06 16:25:28 +02:00
48e871ab1d
Cleanup: Nuke moar G.main usages...
2018-06-06 15:50:24 +02:00
23db3a5ade
Renamed BKE_nomain_mesh_xxx → BKE_mesh_nomain_xxx
...
This maintains the `BKE_mesh_` prefix for the mesh-related BKE functions.
2018-06-06 10:30:24 +02:00
f0d9dbae0d
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenloader/intern/readfile.h
source/blender/blenloader/intern/versioning_250.c
source/blender/blenloader/intern/versioning_260.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_legacy.c
source/blender/editors/render/render_shading.c
source/blender/makesrna/intern/rna_movieclip.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/voxeldata.c
2018-06-05 17:02:50 +02:00
ce6db959c7
Moved function declarations from BKE_DerivedMesh.h to BKE_mesh_runtime.h
...
The function definitions still reside in DerivedMesh.c. Once we're done
porting all the DerivedMesh use to Mesh, we'll move the still-relevant
functions to mesh_runtime.c. This move is now cumbersome due to shared
statically-declared utility functions in DerivedMesh.c
2018-06-05 16:59:25 +02:00
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
95011f6d48
Merge branch 'master' into blender2.8
2018-06-04 09:39:04 +02:00
44505b38df
Cleanup: strip trailing space in editors
2018-06-04 09:31:30 +02:00
bfe1d0e0dc
Merge branch 'master' into blender2.8
2018-06-01 18:26:42 +02:00
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
c0dd355926
Modifiers: ported applying modifier from DerivedMesh → Mesh
2018-06-01 17:35:26 +02:00
cd702db338
Animation: Pass dependency graph to animation system
...
This way we allow animation system to make decisions based on which
context dependency graph is coming from, and whether it belongs to
an active edit window or not.
2018-05-31 18:07:55 +02:00
b809340960
Merge branch 'master' into blender2.8
...
Conflicts:
intern/cycles/blender/blender_curves.cpp
source/blender/blenkernel/BKE_particle.h
source/blender/blenkernel/intern/modifier.c
source/blender/blenkernel/intern/object_update.c
source/blender/blenkernel/intern/particle_system.c
source/blender/editors/object/object_modifier.c
source/blender/editors/physics/physics_fluid.c
source/blender/makesrna/intern/rna_particle.c
source/blender/modifiers/intern/MOD_particlesystem.c
2018-05-31 15:37:15 +02:00
b53d358261
Cleanup: remove G.main from BKE modifier.
2018-05-31 15:24:30 +02:00