Skip to content

Commit cb7ea54

Browse files
committed
Cinema 4D C++ SDK 2026.1
1 parent 382539c commit cb7ea54

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

plugins/example.image/source/example_image_layers_area.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ static float* AddAlienBuffer()
110110
// The knots of the gradient. We either interpolate from opaque to transparent or vice versa. We
111111
// dip here our toes a bit into the Maxon API with ColorA32 so that we later use its color
112112
// interpolation function.
113-
const float alphaA = g_random.Get01() > .5 ? 0.0 : 1.0;
114-
const float alphaB = alphaA > 0.5 ? 0.0 : 1.0;
113+
const float alphaA = g_random.Get01() > .5 ? 0.0f : 1.0f;
114+
const float alphaB = alphaA > 0.5f ? 0.0f : 1.0f;
115115
const maxon::ColorA32 gradientColorA(
116116
g_random.Get01(), g_random.Get01(), g_random.Get01(), alphaA);
117117
const maxon::ColorA32 gradientColorB(

plugins/example.main/source/gui/activeobject.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,14 @@ static Bool BuildTree(DebugNode* parent, DebugArray& oldlist, DebugArray& newlis
348348
if (cc)
349349
if (!BuildTree(n, oldlist, newlist, cc, String("ISOPARM: "), true))
350350
return false;
351+
352+
if (node->GetInfo() & OBJECT_ISSPLINE)
353+
{
354+
cc = obj->GetRealSpline();
355+
if (cc && (cc != obj))
356+
if (!BuildTree(n, oldlist, newlist, cc, String("REALSPLINE: "), true))
357+
return false;
358+
}
351359
}
352360

353361
if (node->GetDown())

plugins/example.main/source/object/objectdata_greektemple.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ namespace GreekTempleHelpers
414414
/// Global function responsible to create the colonnade of the temple using cylinders and bent
415415
/// cubes and responsible for managing the columns grid arrangement.
416416
/// @brief Global function to create the temple colonnade managing columns grid arrangement.
417-
/// @param[out] colonnadeNullRelPtr Colonnade object. @callerOwnsPointed{base object}
418417
/// @param[in] columnNullRelPtr Column object to be instanced.
419418
/// @param[in] topStepWidth Width of the top-most step.
420419
/// @param[in] topStepHeight Height of the top-most step.
@@ -424,7 +423,7 @@ namespace GreekTempleHelpers
424423
/// @param[in] xSpace Space between columns along the x-axis.
425424
/// @param[in] zSpace Space between columns along the z-axis.
426425
/// @param[in] hhPtr A hierarchy helper for the operation. @callerOwnsPointed{hierarchy helper}
427-
/// @return True if instancing process succeeds.
426+
/// @return Colonnade object or error.
428427
//----------------------------------------------------------------------------------------
429428
static maxon::Result<BaseObject*> PerformeColumnsInstancing(maxon::UniqueRef<BaseObject> columnNullRelPtr, const Float& topStepWidth, const Float& topStepHeight, const Vector& topStepBLVertexPos, const Vector& columnRadius, const Vector& columnScaleVector, const Float xSpace /*= 0*/, const Float zSpace /*= 0*/, const HierarchyHelp* hhPtr /*= nullptr*/)
430429
{

0 commit comments

Comments
 (0)