Rezplat up to the region's prim size limit
parent
8f7d6a3431
commit
7bc1fb0540
|
|
@ -1246,12 +1246,11 @@ void cmdline_rezplat(bool use_saved_value, F32 visual_radius) //cmdline_rezplat(
|
|||
|
||||
LLVolumeParams volume_params;
|
||||
|
||||
volume_params.setType( LL_PCODE_PROFILE_CIRCLE, 0x21 ); //TODO: make this use LL_PCODE_PATH_CIRCLE_33 again instead of the hardcoded value
|
||||
volume_params.setRatio( 2, 2 );
|
||||
volume_params.setShear( 0, 0 );
|
||||
volume_params.setTaper(2.0f,2.0f);
|
||||
volume_params.setTaperX(0.f);
|
||||
volume_params.setTaperY(0.f);
|
||||
volume_params.setType( LL_PCODE_PROFILE_CIRCLE, LL_PCODE_PATH_LINE );
|
||||
volume_params.setBeginAndEndS( 0.f, 1.f );
|
||||
volume_params.setBeginAndEndT( 0.f, 1.f );
|
||||
volume_params.setRatio ( 1, 1 );
|
||||
volume_params.setShear ( 0, 0 );
|
||||
|
||||
LLVolumeMessage::packVolumeParams(&volume_params, msg);
|
||||
LLVector3 rezpos = agentPos - LLVector3(0.0f,0.0f,2.5f);
|
||||
|
|
@ -1261,9 +1260,17 @@ void cmdline_rezplat(bool use_saved_value, F32 visual_radius) //cmdline_rezplat(
|
|||
static LLCachedControl<F32> sFSCmdLinePlatformSize(gSavedSettings, "FSCmdLinePlatformSize");
|
||||
|
||||
if (use_saved_value) visual_radius = sFSCmdLinePlatformSize;
|
||||
F32 realsize = visual_radius / 3.0f;
|
||||
if (realsize < 0.01f) realsize = 0.01f;
|
||||
else if (realsize > 10.0f) realsize = 10.0f;
|
||||
F32 max_scale = LLWorld::getInstance()->getRegionMaxPrimScale();
|
||||
F32 min_scale = LLWorld::getInstance()->getRegionMinPrimScale();
|
||||
F32 realsize = visual_radius;// / 3.0f;
|
||||
if (realsize < min_scale)
|
||||
{
|
||||
realsize = min_scale;
|
||||
}
|
||||
else if (realsize > max_scale)
|
||||
{
|
||||
realsize = max_scale;
|
||||
}
|
||||
|
||||
msg->addVector3Fast(_PREHASH_Scale, LLVector3(0.01f,realsize,realsize) );
|
||||
msg->addQuatFast(_PREHASH_Rotation, rotation );
|
||||
|
|
|
|||
|
|
@ -944,7 +944,7 @@
|
|||
height="16"
|
||||
name="FSCmdLineRezPlatform_txt"
|
||||
width="250">
|
||||
Rez a platform (usage: cmd 0 - 30)
|
||||
Rez a platform (usage: cmd 0 - 64)
|
||||
</text>
|
||||
<line_editor
|
||||
top_pad="0"
|
||||
|
|
@ -965,8 +965,8 @@
|
|||
increment="0.5"
|
||||
initial_value="5"
|
||||
label="Width"
|
||||
label_width="30"
|
||||
max_val="30"
|
||||
label_width="64"
|
||||
max_val="64"
|
||||
min_val="5"
|
||||
show_text="true"
|
||||
width="200"
|
||||
|
|
|
|||
Loading…
Reference in New Issue