Cleanup: Move BKE_node.h to C++ #107790

Merged
Hans Goudey merged 16 commits from mod_moder/blender:tmp_move_node_on_cpp into main 2023-05-15 15:14:30 +02:00

See: #103343

Changes:

  1. Added BKE_node.hh file. New file include old one.
  2. Some functions moved in new cpp file. Redundant (void), struct const a are removed.
  3. All cpp includes replaced from .h on .hh.
  4. Everything in BKE_node.hh is on blender::bke namespace.
  5. All implementation functions moved in namespace. Related static impementation functions too.
  6. Some function names (BKE_node_...) was changed on blender::bke::node_....
  7. eNodeSizePreset now is a class.
  8. eNodeSizePreset'enums elements renamed NODE_SIZE_DEFAULT -> DEFAULT (final is: blender::bke::eNodeSizePreset::DEFAULT).
See: https://projects.blender.org/blender/blender/issues/103343 Changes: 1. Added `BKE_node.hh` file. New file include old one. 2. Some functions moved in new cpp file. Redundant `(void)`, `struct const a` are removed. 3. All cpp includes replaced from `.h` on `.hh`. 4. Everything in `BKE_node.hh` is on `blender::bke` namespace. 5. All implementation functions moved in namespace. Related static impementation functions too. 6. Some function names (`BKE_node_...`) was changed on `blender::bke::node_...`. 7. `eNodeSizePreset` now is a class. 8. `eNodeSizePreset`'enums elements renamed `NODE_SIZE_DEFAULT` -> `DEFAULT` (final is: `blender::bke::eNodeSizePreset::DEFAULT`).
Iliya Katushenock added 1 commit 2023-05-09 17:21:11 +02:00
Iliya Katushenock added 1 commit 2023-05-09 17:22:06 +02:00
Hans Goudey changed title from WIP: Cleanup: Move BKE_node.c to C++ to WIP: Cleanup: Move BKE_node.h to C++ 2023-05-09 18:19:50 +02:00
Iliya Katushenock added 3 commits 2023-05-12 00:28:21 +02:00
Iliya Katushenock added 2 commits 2023-05-13 22:31:55 +02:00
Iliya Katushenock added 1 commit 2023-05-14 00:42:32 +02:00
Iliya Katushenock requested review from Hans Goudey 2023-05-14 00:59:08 +02:00
Iliya Katushenock added 1 commit 2023-05-14 01:27:25 +02:00
Iliya Katushenock added 1 commit 2023-05-14 01:29:39 +02:00
Iliya Katushenock changed title from WIP: Cleanup: Move BKE_node.h to C++ to Cleanup: Move BKE_node.h to C++ 2023-05-14 01:36:28 +02:00
Author
Member

The main ones used the remaining C functions:

  • Node rna.
  • Light / material bke.
  • Versioning 2.5, 2.6, 2.7, 2.8.
The main ones used the remaining C functions: - Node rna. - Light / material bke. - Versioning 2.5, 2.6, 2.7, 2.8.
Iliya Katushenock added 1 commit 2023-05-14 13:25:19 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
c4f5c4c8f0
delete extra blender::...
Member

@blender-bot build

@blender-bot build
Hans Goudey added this to the Nodes & Physics project 2023-05-14 15:25:21 +02:00
Hans Goudey approved these changes 2023-05-14 15:29:54 +02:00
Hans Goudey left a comment
Member

Looks good to me, assuming the build and tests pass.

Looks good to me, assuming the build and tests pass.
Iliya Katushenock added 1 commit 2023-05-14 15:48:41 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
60df905f46
fix .cpp files
Member

@blender-bot build

@blender-bot build
Iliya Katushenock added 1 commit 2023-05-14 18:17:56 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
082b301465
hah...
Member

@blender-bot build

@blender-bot build
Author
Member

I still had to include collda module in the local build in order to understand what was wrong ...

I still had to include collda module in the local build in order to understand what was wrong ...
Iliya Katushenock added 1 commit 2023-05-14 20:07:16 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
65cd59bcd4
add missing include
Member

@blender-bot build

@blender-bot build
Iliya Katushenock added 2 commits 2023-05-15 12:53:15 +02:00
Member

@blender-bot build

@blender-bot build
Hans Goudey merged commit f7388e3be5 into main 2023-05-15 15:14:30 +02:00
Iliya Katushenock deleted branch tmp_move_node_on_cpp 2023-05-15 17:00:03 +02:00
Falk David reviewed 2023-05-16 12:41:41 +02:00
@ -0,0 +1,372 @@
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2005 Blender Foundation */
Member

Always check new files for the right copyright. This should be Copyright 2023 Blender Foundation.

Always check new files for the right copyright. This should be `Copyright 2023 Blender Foundation.`
Author
Member

I added this in #107952

I added this in https://projects.blender.org/blender/blender/pulls/107952
mod_moder marked this conversation as resolved
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:40 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#107790
No description provided.