Fix #124646: Cycles: Point Density node still works on surfaces in OSL #125928

Merged
Lukas Stockner merged 1 commits from LukasStockner/blender:fix-pointdensity-osl into main 2024-08-08 00:48:55 +02:00
Member

This was already sort of disabled in 4.0 (in #109712), but still worked in OSL, so let's make it consistent.

This was already sort of disabled in 4.0 (in #109712), but still worked in OSL, so let's make it consistent.
Lukas Stockner requested review from Sergey Sharybin 2024-08-06 00:16:38 +02:00
Lukas Stockner requested review from Weizhen Huang 2024-08-06 00:16:38 +02:00
Sergey Sharybin requested changes 2024-08-06 09:58:05 +02:00
Dismissed
Sergey Sharybin left a comment
Owner

Overall it seems good, just some naming and presentation suggestions. Thanks for taking care of the high prios!

For the bug fixes the title should be Fix #<number>: Short user level description: https://developer.blender.org/docs/handbook/guidelines/commit_messages/#bug-fixes

Overall it seems good, just some naming and presentation suggestions. Thanks for taking care of the high prios! For the bug fixes the title should be `Fix #<number>: Short user level description`: https://developer.blender.org/docs/handbook/guidelines/commit_messages/#bug-fixes
@ -0,0 +1,18 @@
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
@ -0,0 +4,4 @@
#include "stdcycles.h"
shader node_voxel_texture_dummy(

I'd suggest calling it node_voxel_texture_empty or node_voxel_texture_zero. "Dummy" kind of implies the exact value is not important, but its not the case here.

I'd suggest calling it `node_voxel_texture_empty` or `node_voxel_texture_zero`. "Dummy" kind of implies the exact value is not important, but its not the case here.
Lukas Stockner changed title from Cycles: Explicitly disable Point Density texture for non-Volume shaders to Fix #124646: Cycles: Point Density node still works on surfaces in OSL 2024-08-07 02:37:49 +02:00
Lukas Stockner force-pushed fix-pointdensity-osl from 10c3bc9c40 to 3597dade81 2024-08-07 02:37:52 +02:00 Compare
Lukas Stockner requested review from Sergey Sharybin 2024-08-07 02:38:36 +02:00
Sergey Sharybin approved these changes 2024-08-07 10:19:53 +02:00
Lukas Stockner merged commit 90bcc3b5dc into main 2024-08-08 00:48:55 +02:00
Lukas Stockner deleted branch fix-pointdensity-osl 2024-08-08 00:48:58 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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 project
No Assignees
2 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#125928
No description provided.