tornavis/source/blender/makesdna
Hans Goudey f59767ff97 Curves: Changes to the new curves data-block
This patch refactors the "Hair" data-block, which will soon be renamed
to "Curves". The larger change is switching from an array of `HairCurve`
to find indices in the points array to simply storing an array of offsets.
Using a single integer instead of two halves the amount of memory for that
particular array.

Besides that, there are some other changes in this patch:
- Split the data-structure to a separate `CurveGeometry`
  DNA struct so it is usable for grease pencil too.
- Update naming to be more aligned with newer code and the style guide.
- Add direct access to some arrays in RNA
-- Radius is now retrieved as a regular attribute in Cycles.
-- `HairPoint` has been renamed to `CurvePoint`
-- `HairCurve` has been renamed to `CurveSlice`
- Add comments to the struct in DNA.

The next steps are renaming `Hair` -> `Curves`, and adding support
for other curve types: Bezier, Poly, and NURBS.

Ref T95355

Differential Revision: https://developer.blender.org/D13987
2022-02-03 10:49:51 -06:00
..
intern Baking: new method to generate margin, based on adjacent faces 2022-01-17 19:36:13 +01:00
CMakeLists.txt ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
DNA_ID.h Fix T66913: undo after frame-change doesn't refresh properly 2022-02-03 21:37:42 +11:00
DNA_ID_enums.h Cleanup: comment blocks, trailing space in comments 2021-06-24 15:59:34 +10:00
DNA_action_types.h Cleanup: spelling in comments 2022-01-06 13:54:52 +11:00
DNA_anim_types.h Cleanup: spelling in comments 2022-01-06 13:54:52 +11:00
DNA_armature_defaults.h Armature: Add minimal DNA defaults for bArmature. 2020-10-08 13:23:30 +02:00
DNA_armature_types.h Docs: note that Bone.xwidth & zwidth are doubled 2022-02-02 17:31:06 +11:00
DNA_asset_defaults.h Assets: Add an active asset library per workspace, for the UI to use 2021-07-15 16:12:36 +02:00
DNA_asset_types.h Assets: Snapping with visual feedback while dragging 2021-10-25 11:57:26 -03:00
DNA_boid_types.h Cleanup: full sentences in comments, improve comment formatting 2021-06-26 21:50:48 +10:00
DNA_brush_defaults.h Cleanup: comment blocks, trailing space in comments 2021-06-24 15:59:34 +10:00
DNA_brush_enums.h Cleanup: spelling in comments 2022-01-26 16:06:22 +11:00
DNA_brush_types.h Cleanup: spelling in comments 2022-01-06 13:54:52 +11:00
DNA_cachefile_defaults.h Alembic Procedural: basic cache control settings 2021-08-20 14:34:43 +02:00
DNA_cachefile_types.h Alembic: add support for reading override layers 2022-01-17 14:51:04 +01:00
DNA_camera_defaults.h Cleanup: follow our code style for float literals 2020-11-06 12:32:54 +11:00
DNA_camera_types.h Cleanup: comment blocks, trailing space in comments 2021-06-24 15:59:34 +10:00
DNA_cloth_types.h Cleanup: spelling in comments 2021-09-24 11:31:23 +10:00
DNA_collection_defaults.h Add DNA defaults for Collection. 2020-10-08 16:11:38 +02:00
DNA_collection_types.h Cleanup: rename restrict to hide/visibility in Object, Collection, MaskLayer 2021-08-04 19:18:34 +02:00
DNA_color_types.h Cleanup: use doxygen comments for DNA_color_types 2021-06-15 09:34:58 +10:00
DNA_constraint_types.h Cleanup: spelling in comments, comment block formatting 2021-11-13 13:07:13 +11:00
DNA_curve_defaults.h Cleanup: Rename curve struct fields 2021-12-01 22:01:35 -05:00
DNA_curve_types.h Cleanup: Remove unused curve types from enum 2021-12-13 15:13:47 -06:00
DNA_curveprofile_types.h Cleanup: Replace macro with function 2021-10-03 18:54:52 -05:00
DNA_customdata_types.h Cleanup: spelling in comments 2022-01-24 14:35:23 +11:00
DNA_defaults.h DNA: Add space clip editor defaults 2022-01-12 18:04:48 +01:00
DNA_defs.h Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXX 2021-07-04 00:43:40 +10:00
DNA_documentation.h Cleanup: use single back-tick quoting in comments 2021-07-20 22:58:14 +10:00
DNA_dynamicpaint_types.h Cleanup: Spelling Mistakes 2021-06-22 10:54:50 -07:00
DNA_effect_types.h Cleanup: spelling in comments & strings 2021-11-30 10:15:17 +11:00
DNA_fileglobal_types.h Cleanup: use "filepath" term for Main, BlendFileData & FileGlobal 2021-12-13 16:22:19 +11:00
DNA_fluid_defaults.h Modifiers: export motion blur velocity through attribute 2021-09-10 16:48:30 +02:00
DNA_fluid_types.h Cleanup: fix typos in comments and docs 2021-11-19 12:46:49 +01:00
DNA_freestyle_types.h UI: Freestyle UI Upgrade 2021-09-13 10:37:50 -04:00
DNA_genfile.h Cleanup: remove redundant const qualifiers for POD types 2022-01-07 14:16:26 +11:00
DNA_gpencil_modifier_defaults.h LineArt: Option to keep contour when using face mark filtering. 2022-01-22 16:57:25 +08:00
DNA_gpencil_modifier_types.h LineArt: Invert collection option. 2022-01-17 17:22:09 +08:00
DNA_gpencil_types.h LineArt: Smooth tolerance value for chaining. 2021-09-26 19:43:12 +08:00
DNA_gpu_types.h Cleanup: spelling in comments 2021-10-18 12:13:10 +11:00
DNA_hair_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_hair_types.h Curves: Changes to the new curves data-block 2022-02-03 10:49:51 -06:00
DNA_image_defaults.h Use DrawManager for Image/UV Editor 2020-09-11 08:08:46 +02:00
DNA_image_types.h Image: Partial Update Redesign. 2022-01-28 08:06:19 +01:00
DNA_ipo_types.h Cleanup: comment spelling & punctuation 2021-07-27 18:06:29 +10:00
DNA_key_types.h Cleanup: comment blocks, trailing space in comments 2021-06-24 15:59:34 +10:00
DNA_lattice_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_lattice_types.h Refactor: Move vertex group names to object data 2021-07-13 12:10:34 -04:00
DNA_layer_types.h Fix T92442: undo removal of Eevee cryptomatte accurate mode option 2021-11-18 15:59:08 +01:00
DNA_light_defaults.h Cycles: add a spread setting for area lights 2021-04-01 12:31:01 +02:00
DNA_light_types.h Cleanup: code comments punctuation / spacing 2021-07-23 17:03:51 +10:00
DNA_lightprobe_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_lightprobe_types.h Cleanup: fix typos in comments and docs 2021-11-19 12:46:49 +01:00
DNA_lineart_types.h LineArt: Option to keep contour when using face mark filtering. 2022-01-22 16:57:25 +08:00
DNA_linestyle_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_linestyle_types.h Cleanup: comment spelling & punctuation 2021-07-27 18:06:29 +10:00
DNA_listBase.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_mask_types.h Cleanup: rename restrict to hide/visibility in Object, Collection, MaskLayer 2021-08-04 19:18:34 +02:00
DNA_material_defaults.h LineArt: UI cleanups. 2021-07-20 13:06:45 +08:00
DNA_material_types.h Cleanup: spelling in comments 2022-01-06 13:54:52 +11:00
DNA_mesh_defaults.h Fix T84520: Make the different weight paint code paths exclusive to each other 2021-04-02 14:44:26 +02:00
DNA_mesh_types.h Subdivision: add support for vertex creasing 2022-01-20 12:21:34 +01:00
DNA_meshdata_types.h Cleanup: Remove mesh vertex "temp tag" flag 2022-01-28 22:40:13 -06:00
DNA_meta_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_meta_types.h Cleanup/Docs: Add comments to Mesh header, rearrange fields 2021-12-10 10:42:28 -06:00
DNA_modifier_defaults.h Fix T91444: Edge Loop Preview fails with two Mirror Modifiers 2021-11-25 10:21:49 +01:00
DNA_modifier_types.h Fix assert in original modifiers pointer update function 2022-02-03 10:02:20 +01:00
DNA_movieclip_defaults.h Cleanup: quiet missing braces warning 2022-01-13 12:33:34 +11:00
DNA_movieclip_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_nla_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_node_types.h Geometry Nodes: String to Curves Line/Pivot Point 2022-01-26 22:12:50 +01:00
DNA_object_defaults.h Grease Pencil: Add LineArt modifier 2021-03-16 19:59:09 +01:00
DNA_object_enums.h Build-system: Force C linkage for all DNA type headers 2020-11-19 13:41:50 +01:00
DNA_object_fluidsim_types.h Cleanup: full sentences in comments, improve comment formatting 2021-06-26 21:50:48 +10:00
DNA_object_force_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_object_types.h Python: Expose crazyspace correction functionality via RNA 2022-01-25 14:43:44 +01:00
DNA_outliner_types.h Cleanup: spelling in comments & strings 2021-11-30 10:15:17 +11:00
DNA_packedFile_types.h Build-system: Force C linkage for all DNA type headers 2020-11-19 13:41:50 +01:00
DNA_particle_defaults.h Add DNA defaults for ParticleSettings. 2020-10-08 18:19:09 +02:00
DNA_particle_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_pointcache_types.h Cleanup: spelling in comments & strings 2021-11-30 10:15:17 +11:00
DNA_pointcloud_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_pointcloud_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_rigidbody_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_scene_defaults.h Baking: new method to generate margin, based on adjacent faces 2022-01-17 19:36:13 +01:00
DNA_scene_types.h Baking: new method to generate margin, based on adjacent faces 2022-01-17 19:36:13 +01:00
DNA_screen_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_sdna_types.h Build-system: Force C linkage for all DNA type headers 2020-11-19 13:41:50 +01:00
DNA_sequence_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_session_uuid_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_shader_fx_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_simulation_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_simulation_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_sound_types.h VSE: Fix audaspace not reading ffmpeg files with start offset correctly 2021-08-16 15:10:58 +02:00
DNA_space_defaults.h Cleanup: spelling in comments, C++ style comments for disabled code 2022-01-14 11:23:46 +11:00
DNA_space_types.h Cleanup: clang-format 2022-01-24 21:15:25 +11:00
DNA_speaker_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_speaker_types.h Build-system: Force C linkage for all DNA type headers 2020-11-19 13:41:50 +01:00
DNA_text_types.h Build-system: Force C linkage for all DNA type headers 2020-11-19 13:41:50 +01:00
DNA_texture_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_texture_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_tracking_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_userdef_types.h Remove option to not auto-convert proxies on file load. 2022-02-02 09:47:10 +01:00
DNA_uuid_types.h Assets: add Asset Catalog system 2021-09-23 15:00:45 +02:00
DNA_vec_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_vec_types.h Build-system: Force C linkage for all DNA type headers 2020-11-19 13:41:50 +01:00
DNA_vfont_types.h Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXX 2021-07-04 00:43:40 +10:00
DNA_view2d_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_view3d_defaults.h Bone Overlay: support changing bone wireframe opacity. 2022-01-06 16:43:18 +03:00
DNA_view3d_enums.h XR Controller Support Step 4: Controller Drawing 2021-10-12 16:18:05 +09:00
DNA_view3d_types.h Cleanup: Grammar: its self vs. itself 2022-01-23 22:34:56 -06:00
DNA_volume_defaults.h Liquid Simulation Display Options (GSoC 2020) 2020-09-15 23:13:01 +05:30
DNA_volume_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_windowmanager_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_workspace_types.h Docs: use doxygen formatting for DNA 2021-12-20 19:07:10 +11:00
DNA_world_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_world_types.h Build-system: Force C linkage for all DNA type headers 2020-11-19 13:41:50 +01:00
DNA_xr_types.h XR Controller Support Step 5: Navigation 2021-10-26 13:34:58 +09:00