LandscapeImportHelper.cpp bug?

Hello, Is there a mistake in this code where “InOutSectionsPerComponent” is assigned different values in separate conditions?
Shouldn’t the value in the second if statement be assigned to “InOutQuadsPerSection” instead of “InOutSectionsPerComponent”?


		if (!bValidSubsectionSizeParam)
		{
			InOutSectionsPerComponent = FLandscapeConfig::NumSectionValues[0];
		}

		if (!bValidQuadsPerSectionParam)
		{
			InOutSectionsPerComponent = FLandscapeConfig::SubsectionSizeQuadsValues[0];
		}

Source\Editor\LandscapeEditor\Private\LandscapeImportHelper.cpp in the method FLandscapeImportHelper::ChooseBestComponentSizeForImport()

1 Like