Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jedd/cxpla 55 add required keyword for more geometry types #220

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed compiler errors
  • Loading branch information
JR-Morgan committed Sep 13, 2024
commit ceab997a6fa1a20e6f9684a7fae2ddd0a4a9582c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void UnpackInstance(BlockReference instance, int depth, Transaction tran
if (
!_instanceObjectsManager.TryGetInstanceProxiesFromDefinitionId(
definitionId.ToString(),
out List<InstanceProxy> instanceProxiesWithSameDefinition
out List<InstanceProxy>? instanceProxiesWithSameDefinition
)
)
{
Expand All @@ -104,7 +104,7 @@ out List<InstanceProxy> instanceProxiesWithSameDefinition
if (
_instanceObjectsManager.TryGetInstanceDefinitionProxy(
definitionId.ToString(),
out InstanceDefinitionProxy value
out InstanceDefinitionProxy? value
)
)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ private RenderMaterialProxy ConvertMaterialToRenderMaterialProxy(Material materi
renderMaterial["ior"] = material.Refraction.Index;
renderMaterial["reflectivity"] = material.Reflectivity;

return new(renderMaterial, new()) { applicationId = id };
return new RenderMaterialProxy()
{
value = renderMaterial,
objects = new(),
applicationId = id
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RhinoCommon" NoWarn="NU1701" IncludeAssets="compile; build" PrivateAssets="all" />
<PackageReference Include="RhinoWindows" NoWarn="NU1701" IncludeAssets="compile; build" PrivateAssets="all" />
<PackageReference Include="RhinoCommon" IncludeAssets="compile; build" PrivateAssets="all" />
<PackageReference Include="RhinoWindows" IncludeAssets="compile; build" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void UnpackInstance(InstanceObject instance, int depth = 0)
if (
!_instanceObjectsManager.TryGetInstanceProxiesFromDefinitionId(
instanceDefinitionId,
out List<InstanceProxy> instanceProxiesWithSameDefinition
out List<InstanceProxy>? instanceProxiesWithSameDefinition
)
)
{
Expand All @@ -85,7 +85,7 @@ out List<InstanceProxy> instanceProxiesWithSameDefinition
instanceProxiesWithSameDefinition.Add(_instanceObjectsManager.GetInstanceProxy(instanceId));

if (
_instanceObjectsManager.TryGetInstanceDefinitionProxy(instanceDefinitionId, out InstanceDefinitionProxy value)
_instanceObjectsManager.TryGetInstanceDefinitionProxy(instanceDefinitionId, out InstanceDefinitionProxy? value)
)
{
int depthDifference = depth - value.maxDepth;
Expand Down
Loading