Geometry Nodes: Simulation calculate to frame operator #107627

Merged
Lukas Tönne merged 3 commits from LukasTonne/blender:cache-to-frame-op into main 2023-05-08 13:41:28 +02:00
Member

Adds a new operator that resets caches and then iterates from the start frame
to the current frame in order to update caches.

Adds a new operator that resets caches and then iterates from the start frame to the current frame in order to update caches.
Lukas Tönne added 1 commit 2023-05-04 18:28:52 +02:00
Lukas Tönne requested review from Hans Goudey 2023-05-04 18:29:04 +02:00
Lukas Tönne added this to the Nodes & Physics project 2023-05-04 18:29:10 +02:00
Hans Goudey changed title from Operator to calculate the simulation cache from start to current frame. to Geometry Nodes: Simulation calculate to frame operator 2023-05-04 18:55:19 +02:00
Hans Goudey requested changes 2023-05-04 19:01:33 +02:00
@ -54,0 +59,4 @@
return true;
}
struct ModifierCalculateData {
Member

Unused struct here

Unused struct here
LukasTonne marked this conversation as resolved
@ -54,0 +64,4 @@
std::unique_ptr<bke::sim::BDataSharing> bdata_sharing;
};
struct ObjectCalculateData {
Member

Might as well just use Object * instead of adding a new struct, that can be easily changed later if necessary.

Might as well just use `Object *` instead of adding a new struct, that can be easily changed later if necessary.
LukasTonne marked this conversation as resolved
@ -318,0 +474,4 @@
ot->name = "Calculate Simulation to Frame";
ot->description =
"Calculate simulations in geometry nodes modifiers from start to current frame";
Member

from start -> from the start

`from start` -> `from the start`
@ -318,0 +481,4 @@
ot->modal = calculate_to_frame_modal;
ot->poll = calculate_to_frame_poll;
RNA_def_boolean(ot->srna, "selected", false, "Selected", "Bake cache on all selected objects");
Member

Let's try to avoid mixing the "bake" and "cache" terms. I think something like "Affect selected objects rather than just the active object" would be fine.

Let's try to avoid mixing the "bake" and "cache" terms. I think something like "Affect selected objects rather than just the active object" would be fine.
Lukas Tönne added 2 commits 2023-05-05 10:20:43 +02:00
Lukas Tönne requested review from Hans Goudey 2023-05-05 10:22:21 +02:00
Jacques Lucke approved these changes 2023-05-08 13:15:19 +02:00
Lukas Tönne merged commit 3e888d77ba into main 2023-05-08 13:41:28 +02:00
Lukas Tönne deleted branch cache-to-frame-op 2023-05-08 13:41:29 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:41 +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#107627
No description provided.