Jacques Lucke
91694b9b58
Code Style: use "#pragma once" in source directory
...
This replaces header include guards with `#pragma once`.
A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`),
because they are used in other places.
This patch has been generated by P1561 followed by `make format`.
Differential Revision: https://developer.blender.org/D8466
2020-08-07 09:50:34 +02:00
Bastien Montagne
77d71cc113
Move CDData debug print helper from DM to CustomData 'namespace'/files.
2020-08-06 15:03:49 +02:00
Dalai Felinto
2d1cce8331
Cleanup: make format after SortedIncludes change
2020-03-19 09:33:58 +01:00
Jacques Lucke
5de56f9596
Cleanup: make remaining blenkernel headers work in C++
2020-03-02 15:07:49 +01:00
Campbell Barton
220310ffc5
Cleanup: remove unused derived mesh functionality
2020-02-26 15:22:46 +11:00
Campbell Barton
5dcb6fb22f
Cleanup: unused enums
2020-02-20 12:19:55 +11:00
Campbell Barton
a74f0dc0e3
Cleanup: declatatuons for functions that don't exist
2020-02-20 11:22:14 +11:00
Campbell Barton
249f4423ee
Cleanup: doxygen comments
...
Also correct some outdated symbol references,
add missing 'name' commands.
2019-11-25 01:51:11 +11:00
Campbell Barton
6eadd40597
Cleanup: redundant struct declarations
2019-08-25 16:45:47 +10:00
Campbell Barton
f8d7993eec
Cleanup: remove unused DM_to_mesh function
2019-08-25 14:09:09 +10:00
Campbell Barton
189aa32a3a
Cleanup: vertex coordinate access, naming & minor changes
...
This also splits vertex access and allocation so it's possible
to copy coordinates into an existing array without allocating it.
2019-08-22 06:48:10 +10:00
Campbell Barton
0050a044fa
Cleanup: remove unused derived-mesh API calls
2019-08-21 11:41:40 +10:00
Campbell Barton
545610d3aa
Cleanup: un-wrap lines in headers, use doxy comments
2019-06-26 12:44:22 +10:00
Sergey Sharybin
112cd86eb5
Cleanup: Remove unused argument
2019-06-05 15:14:48 +02:00
Campbell Barton
aa42da0385
Cleanup: comments (long lines) in blenkernel
2019-04-27 12:07:07 +10:00
Campbell Barton
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
Campbell Barton
dbc058301b
Cleanup: trailing commas
2019-04-16 16:40:47 +02:00
Brecht Van Lommel
c39d82daf4
Cleanup: remove unused derivedmesh code.
2019-03-28 20:02:59 +01:00
Bastien Montagne
ab0bc65c24
Refactor CDData masks, to have one mask per mesh elem type.
...
We already have different storages for cddata of verts, edges etc.,
'simply' do the same for the mask flags we use all around Blender code
to request some data, or limit some operation to some layers, etc.
Reason we need this is that some cddata types (like Normals) are
actually shared between verts/polys/loops, and we don’t want to generate
clnors everytime we request vnors!
As a side note, this also does final fix to T59338, which was the
trigger for this patch (need to request computed loop normals for
another mesh than evaluated one).
Reviewers: brecht, campbellbarton, sergey
Differential Revision: https://developer.blender.org/D4407
2019-03-07 11:29:50 +01:00
Campbell Barton
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
Campbell Barton
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
Campbell Barton
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
Campbell Barton
c0f88ed8a8
Cleanup: sort forward declarations of enum & struct
...
Done using:
source/tools/utils_maintenance/c_sort_blocks.py
2019-01-28 21:17:58 +11:00
Campbell Barton
b8467273b8
Cleanup: redundant defines
...
Comment or remove unused defines.
2019-01-26 19:15:30 +11:00
Campbell Barton
bcf0c71433
Cleanup: remove non-existing function declarations
2018-12-31 00:58:54 +11:00
Campbell Barton
095f9f26aa
Fix T57770: Edit-mesh wireframe cage select fails
2018-12-06 09:38:08 +11:00
Dalai Felinto
80ffd7b459
Implement bvhtree.fromObject
...
Passing depsgraph instead of scene, since a scene does not fully define the
state of object you want to use for the BVH.
Also, mesh_create_eval_final_view and mesh_create_eval_final_render are pretty
much the same, so mesh_create_eval_no_deform and
mesh_create_eval_no_deform_render are as well.
Issue reported on: T58734
Reviewers: sergey
https://developer.blender.org/D4032
2018-12-05 07:58:58 -02:00
Jacques Lucke
21744217ce
Cleanup: remove some #if 0 blocks
...
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D3802
2018-10-17 12:43:41 +02:00
Campbell Barton
dbb35ff7c8
Cleanup: unused functions
2018-10-15 17:37:54 +11:00
Campbell Barton
27389362a4
Mesh: remove DerivedMesh for boundbox calculation
...
Fixes edit-mesh not having a boundbox calculated for it.
2018-10-15 17:14:05 +11:00
Campbell Barton
0941d99323
Cleanup: remove unused functions
2018-10-15 16:59:27 +11:00
Campbell Barton
2deeca4fb0
Cleanup: remove references to DerivedMesh
2018-10-15 16:06:42 +11:00
Campbell Barton
1b910082a0
Edit Mesh: replace DerivedMesh w/ Mesh
...
DerivedMesh is now removed from edit-mesh modifier evaluation.
2018-10-09 17:48:28 +11:00
Campbell Barton
72e90c5db3
Cleanup: remove unused EditDerivedBMesh
2018-10-09 15:57:38 +11:00
Campbell Barton
3c78763482
Edit Mesh: remove derived-mesh from crazy-space calculation
2018-10-09 15:38:06 +11:00
Campbell Barton
20fbe6bca8
Modifier: move edit-mesh calculation from DerivedMesh to Mesh
2018-10-09 15:11:06 +11:00
Alexander Gavrilov
534009098e
Remove obsolete weight paint color computation code.
...
The new weight paint drawing code converts weight to color
directly in the shader, so the old CD_PREVIEW_MLOOPCOL based
code is not needed anymore.
2018-10-01 11:02:24 +03:00
Sybren A. Stüvel
b9bef10d19
Ported mesh_create_derived_view() to mesh_create_eval_final_view()
2018-07-10 12:00:58 +02:00
Sybren A. Stüvel
f4ce6d02cd
Fluidsim: ported from DerivedMesh to Mesh
...
Also removed a bunch of unnecessary #include statements from fluidsim.c.
2018-07-05 11:30:38 +02:00
Bastien Montagne
5ba87cf22e
Cleanup: remove another bunch of DM usages, includes etc.
2018-06-29 14:57:02 +02:00
Bastien Montagne
65128cde51
Cleanup: remove BKE's modifiers_bmesh.c, other DM removal/cleanup in BMesh code.
2018-06-27 10:59:52 +02:00
Bastien Montagne
5b3ff9f7d8
Cleanup: Move colorband handling from DM to mesh_runtime universe.
2018-06-25 13:04:24 +02:00
Bastien Montagne
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
Campbell Barton
06a1a66a9b
Merge branch 'master' into blender2.8
2018-06-17 17:10:19 +02:00
Campbell Barton
6fc8a74886
Cleanup: trailing space for blenkernel
2018-06-17 17:05:51 +02:00
Sybren A. Stüvel
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
Campbell Barton
bfe1d0e0dc
Merge branch 'master' into blender2.8
2018-06-01 18:26:42 +02:00
Campbell Barton
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
Campbell Barton
4faf9bfbe9
Mesh versions of DerivedMesh access API calls
...
Add mesh_get_eval_final & mesh_get_eval_deform
Note: these will eventually need to be renamed & moved into BKE.
2018-06-01 13:58:53 +02:00
Campbell Barton
01f9e13c30
Cleanup: use 'e' prefix for enum types
2018-05-30 10:29:41 +02:00