Commit 54b918f7 authored by hybrid's avatar hybrid

Removed some unused variables.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1252 dfc29bdd-3216-0410-991c-e03cc46cb475
parent beea38a1
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// 07.10.2005 - Multicolor-Listbox added by A. Buschhueter (Acki) // 07.10.2005 - Multicolor-Listbox added by A. Buschhueter (Acki)
// A_Buschhueter@gmx.de // A_Buschhueter@gmx.de
#include "CGUITable.h" #include "CGUITable.h"
#ifdef _IRR_COMPILE_WITH_GUI_ #ifdef _IRR_COMPILE_WITH_GUI_
...@@ -23,13 +23,13 @@ namespace gui ...@@ -23,13 +23,13 @@ namespace gui
{ {
//! constructor //! constructor
CGUITable::CGUITable(IGUIEnvironment* environment, IGUIElement* parent, CGUITable::CGUITable(IGUIEnvironment* environment, IGUIElement* parent,
s32 id, core::rect<s32> rectangle, bool clip, s32 id, core::rect<s32> rectangle, bool clip,
bool drawBack, bool moveOverSelect) bool drawBack, bool moveOverSelect)
: IGUITable(environment, parent, id, rectangle), Font(0), : IGUITable(environment, parent, id, rectangle), Font(0),
VerticalScrollBar(0), HorizontalScrollBar(0), VerticalScrollBar(0), HorizontalScrollBar(0),
Clip(clip), DrawBack(drawBack), MoveOverSelect(moveOverSelect), Clip(clip), DrawBack(drawBack), MoveOverSelect(moveOverSelect),
Selecting(false), CurrentResizedColumn(-1), ResizeStart(0), ResizableColumns(true), Selecting(false), CurrentResizedColumn(-1), ResizeStart(0), ResizableColumns(true),
ItemHeight(0), TotalItemHeight(0), TotalItemWidth(0), Selected(-1), ItemHeight(0), TotalItemHeight(0), TotalItemWidth(0), Selected(-1),
CellHeightPadding(2), CellWidthPadding(5), ActiveTab(-1), CellHeightPadding(2), CellWidthPadding(5), ActiveTab(-1),
CurrentOrdering(EGOM_NONE), DrawFlags(EGTDF_ROWS | EGTDF_COLUMNS | EGTDF_ACTIVE_ROW ) CurrentOrdering(EGOM_NONE), DrawFlags(EGTDF_ROWS | EGTDF_COLUMNS | EGTDF_ACTIVE_ROW )
...@@ -192,7 +192,7 @@ bool CGUITable::setActiveColumn(s32 idx, bool doOrder ) ...@@ -192,7 +192,7 @@ bool CGUITable::setActiveColumn(s32 idx, bool doOrder )
event.EventType = EET_GUI_EVENT; event.EventType = EET_GUI_EVENT;
event.GUIEvent.Caller = this; event.GUIEvent.Caller = this;
event.GUIEvent.EventType = EGET_TABLE_HEADER_CHANGED; event.GUIEvent.EventType = EGET_TABLE_HEADER_CHANGED;
Parent->OnEvent(event); Parent->OnEvent(event);
} }
return true; return true;
...@@ -217,7 +217,7 @@ void CGUITable::setColumnWidth(u32 columnIndex, u32 width) ...@@ -217,7 +217,7 @@ void CGUITable::setColumnWidth(u32 columnIndex, u32 width)
width = MIN_WIDTH; width = MIN_WIDTH;
Columns[columnIndex].Width = width; Columns[columnIndex].Width = width;
for ( u32 i=0; i < Rows.size(); ++i ) for ( u32 i=0; i < Rows.size(); ++i )
{ {
breakText( Rows[i].Items[columnIndex].Text, Rows[i].Items[columnIndex].BrokenText, Columns[columnIndex].Width ); breakText( Rows[i].Items[columnIndex].Text, Rows[i].Items[columnIndex].BrokenText, Columns[columnIndex].Width );
...@@ -403,9 +403,9 @@ void CGUITable::checkScrollbars() ...@@ -403,9 +403,9 @@ void CGUITable::checkScrollbars()
if ( !HorizontalScrollBar || !VerticalScrollBar || !skin) if ( !HorizontalScrollBar || !VerticalScrollBar || !skin)
return; return;
s32 scrollBarSize = skin->getSize(EGDS_SCROLLBAR_SIZE); s32 scrollBarSize = skin->getSize(EGDS_SCROLLBAR_SIZE);
bool wasHorizontalScrollBarVisible = HorizontalScrollBar->isVisible(); bool wasHorizontalScrollBarVisible = HorizontalScrollBar->isVisible();
bool wasVerticalScrollBarVisible = VerticalScrollBar->isVisible(); bool wasVerticalScrollBarVisible = VerticalScrollBar->isVisible();
HorizontalScrollBar->setVisible(false); HorizontalScrollBar->setVisible(false);
VerticalScrollBar->setVisible(false); VerticalScrollBar->setVisible(false);
...@@ -435,7 +435,7 @@ void CGUITable::checkScrollbars() ...@@ -435,7 +435,7 @@ void CGUITable::checkScrollbars()
VerticalScrollBar->setVisible(true); VerticalScrollBar->setVisible(true);
VerticalScrollBar->setMax(TotalItemHeight - clientClip.getHeight()); VerticalScrollBar->setMax(TotalItemHeight - clientClip.getHeight());
// check horizontal again because we have now smaller clientClip // check horizontal again because we have now smaller clientClip
if ( !HorizontalScrollBar->isVisible() ) if ( !HorizontalScrollBar->isVisible() )
{ {
if( TotalItemWidth > clientClip.getWidth() ) if( TotalItemWidth > clientClip.getWidth() )
...@@ -446,28 +446,28 @@ void CGUITable::checkScrollbars() ...@@ -446,28 +446,28 @@ void CGUITable::checkScrollbars()
} }
} }
} }
// find the correct size for the vertical scrollbar // find the correct size for the vertical scrollbar
if ( VerticalScrollBar->isVisible() ) if ( VerticalScrollBar->isVisible() )
{ {
if (!wasVerticalScrollBarVisible ) if (!wasVerticalScrollBarVisible )
VerticalScrollBar->setPos(0); VerticalScrollBar->setPos(0);
if ( HorizontalScrollBar->isVisible() ) if ( HorizontalScrollBar->isVisible() )
{ {
VerticalScrollBar->setRelativePosition( VerticalScrollBar->setRelativePosition(
core::rect<s32>(RelativeRect.getWidth() - scrollBarSize, 1, core::rect<s32>(RelativeRect.getWidth() - scrollBarSize, 1,
RelativeRect.getWidth()-1, RelativeRect.getHeight()-(1+scrollBarSize) ) ); RelativeRect.getWidth()-1, RelativeRect.getHeight()-(1+scrollBarSize) ) );
} }
else else
{ {
VerticalScrollBar->setRelativePosition( VerticalScrollBar->setRelativePosition(
core::rect<s32>(RelativeRect.getWidth() - scrollBarSize, 1, core::rect<s32>(RelativeRect.getWidth() - scrollBarSize, 1,
RelativeRect.getWidth()-1, RelativeRect.getHeight()-1) ); RelativeRect.getWidth()-1, RelativeRect.getHeight()-1) );
} }
} }
// find the correct size for the horizontal scrollbar // find the correct size for the horizontal scrollbar
if ( HorizontalScrollBar->isVisible() ) if ( HorizontalScrollBar->isVisible() )
{ {
if ( !wasHorizontalScrollBarVisible ) if ( !wasHorizontalScrollBarVisible )
...@@ -487,13 +487,13 @@ void CGUITable::checkScrollbars() ...@@ -487,13 +487,13 @@ void CGUITable::checkScrollbars()
void CGUITable::refreshControls() void CGUITable::refreshControls()
{ {
updateAbsolutePosition(); updateAbsolutePosition();
if ( VerticalScrollBar ) if ( VerticalScrollBar )
VerticalScrollBar->setVisible(false); VerticalScrollBar->setVisible(false);
if ( HorizontalScrollBar ) if ( HorizontalScrollBar )
HorizontalScrollBar->setVisible(false); HorizontalScrollBar->setVisible(false);
recalculateHeights(); recalculateHeights();
recalculateWidths(); recalculateWidths();
} }
...@@ -534,7 +534,7 @@ bool CGUITable::OnEvent(const SEvent &event) ...@@ -534,7 +534,7 @@ bool CGUITable::OnEvent(const SEvent &event)
{ {
if ( !IsEnabled ) if ( !IsEnabled )
return false; return false;
core::position2d<s32> p(event.MouseInput.X, event.MouseInput.Y); core::position2d<s32> p(event.MouseInput.X, event.MouseInput.Y);
switch(event.MouseInput.Event) switch(event.MouseInput.Event)
...@@ -545,14 +545,14 @@ bool CGUITable::OnEvent(const SEvent &event) ...@@ -545,14 +545,14 @@ bool CGUITable::OnEvent(const SEvent &event)
case EMIE_LMOUSE_PRESSED_DOWN: case EMIE_LMOUSE_PRESSED_DOWN:
if (Environment->hasFocus(this) && if (Environment->hasFocus(this) &&
VerticalScrollBar->isVisible() && VerticalScrollBar->isVisible() &&
VerticalScrollBar->getAbsolutePosition().isPointInside(p) && VerticalScrollBar->getAbsolutePosition().isPointInside(p) &&
VerticalScrollBar->OnEvent(event)) VerticalScrollBar->OnEvent(event))
return true; return true;
if (Environment->hasFocus(this) && if (Environment->hasFocus(this) &&
HorizontalScrollBar->isVisible() && HorizontalScrollBar->isVisible() &&
HorizontalScrollBar->getAbsolutePosition().isPointInside(p) && HorizontalScrollBar->getAbsolutePosition().isPointInside(p) &&
HorizontalScrollBar->OnEvent(event)) HorizontalScrollBar->OnEvent(event))
return true; return true;
...@@ -562,7 +562,7 @@ bool CGUITable::OnEvent(const SEvent &event) ...@@ -562,7 +562,7 @@ bool CGUITable::OnEvent(const SEvent &event)
Environment->setFocus(this); Environment->setFocus(this);
return true; return true;
} }
if ( selectColumnHeader( event.MouseInput.X, event.MouseInput.Y ) ) if ( selectColumnHeader( event.MouseInput.X, event.MouseInput.Y ) )
return true; return true;
...@@ -579,16 +579,16 @@ bool CGUITable::OnEvent(const SEvent &event) ...@@ -579,16 +579,16 @@ bool CGUITable::OnEvent(const SEvent &event)
Environment->removeFocus(this); Environment->removeFocus(this);
} }
if (Environment->hasFocus(this) && if (Environment->hasFocus(this) &&
VerticalScrollBar->isVisible() && VerticalScrollBar->isVisible() &&
VerticalScrollBar->getAbsolutePosition().isPointInside(p) && VerticalScrollBar->getAbsolutePosition().isPointInside(p) &&
VerticalScrollBar->OnEvent(event)) VerticalScrollBar->OnEvent(event))
{ {
return true; return true;
} }
if (Environment->hasFocus(this) && if (Environment->hasFocus(this) &&
HorizontalScrollBar->isVisible() && HorizontalScrollBar->isVisible() &&
HorizontalScrollBar->getAbsolutePosition().isPointInside(p) && HorizontalScrollBar->getAbsolutePosition().isPointInside(p) &&
HorizontalScrollBar->OnEvent(event)) HorizontalScrollBar->OnEvent(event))
{ {
...@@ -639,7 +639,7 @@ void CGUITable::swapRows(u32 rowIndexA, u32 rowIndexB) ...@@ -639,7 +639,7 @@ void CGUITable::swapRows(u32 rowIndexA, u32 rowIndexB)
{ {
if ( rowIndexA >= Rows.size() ) if ( rowIndexA >= Rows.size() )
return; return;
if ( rowIndexB >= Rows.size() ) if ( rowIndexB >= Rows.size() )
return; return;
...@@ -658,18 +658,18 @@ bool CGUITable::dragColumnStart(s32 xpos, s32 ypos) ...@@ -658,18 +658,18 @@ bool CGUITable::dragColumnStart(s32 xpos, s32 ypos)
{ {
if ( !ResizableColumns ) if ( !ResizableColumns )
return false; return false;
if ( ypos > ( AbsoluteRect.UpperLeftCorner.Y + ItemHeight ) ) if ( ypos > ( AbsoluteRect.UpperLeftCorner.Y + ItemHeight ) )
return false; return false;
const s32 CLICK_AREA = 3; // to left and right of line which can be dragged const s32 CLICK_AREA = 3; // to left and right of line which can be dragged
s32 pos = AbsoluteRect.UpperLeftCorner.X+1; s32 pos = AbsoluteRect.UpperLeftCorner.X+1;
if ( HorizontalScrollBar && HorizontalScrollBar->isVisible() ) if ( HorizontalScrollBar && HorizontalScrollBar->isVisible() )
pos -= HorizontalScrollBar->getPos(); pos -= HorizontalScrollBar->getPos();
pos += TotalItemWidth; pos += TotalItemWidth;
// have to search from the right as otherwise lines could no longer be resized when a column width is 0 // have to search from the right as otherwise lines could no longer be resized when a column width is 0
for ( s32 i = (s32)Columns.size()-1; i >= 0 ; --i ) for ( s32 i = (s32)Columns.size()-1; i >= 0 ; --i )
{ {
...@@ -684,7 +684,7 @@ bool CGUITable::dragColumnStart(s32 xpos, s32 ypos) ...@@ -684,7 +684,7 @@ bool CGUITable::dragColumnStart(s32 xpos, s32 ypos)
pos -= colWidth; pos -= colWidth;
} }
return false; return false;
} }
...@@ -695,13 +695,13 @@ bool CGUITable::dragColumnUpdate(s32 xpos) ...@@ -695,13 +695,13 @@ bool CGUITable::dragColumnUpdate(s32 xpos)
CurrentResizedColumn = -1; CurrentResizedColumn = -1;
return false; return false;
} }
s32 width = s32(Columns[CurrentResizedColumn].Width) + (xpos-ResizeStart); s32 width = s32(Columns[CurrentResizedColumn].Width) + (xpos-ResizeStart);
if ( width < 0 ) if ( width < 0 )
width = 0; width = 0;
setColumnWidth(CurrentResizedColumn, u32(width)); setColumnWidth(CurrentResizedColumn, u32(width));
ResizeStart = xpos; ResizeStart = xpos;
return false; return false;
} }
...@@ -711,10 +711,10 @@ bool CGUITable::selectColumnHeader(s32 xpos, s32 ypos) ...@@ -711,10 +711,10 @@ bool CGUITable::selectColumnHeader(s32 xpos, s32 ypos)
return false; return false;
s32 pos = AbsoluteRect.UpperLeftCorner.X+1; s32 pos = AbsoluteRect.UpperLeftCorner.X+1;
if ( HorizontalScrollBar && HorizontalScrollBar->isVisible() ) if ( HorizontalScrollBar && HorizontalScrollBar->isVisible() )
pos -= HorizontalScrollBar->getPos(); pos -= HorizontalScrollBar->getPos();
for ( u32 i = 0 ; i < Columns.size() ; ++i ) for ( u32 i = 0 ; i < Columns.size() ; ++i )
{ {
u32 colWidth = Columns[i].Width; u32 colWidth = Columns[i].Width;
...@@ -735,7 +735,7 @@ bool CGUITable::selectColumnHeader(s32 xpos, s32 ypos) ...@@ -735,7 +735,7 @@ bool CGUITable::selectColumnHeader(s32 xpos, s32 ypos)
void CGUITable::orderRows(s32 columnIndex, EGUI_ORDERING_MODE mode) void CGUITable::orderRows(s32 columnIndex, EGUI_ORDERING_MODE mode)
{ {
Row swap; Row swap;
if ( columnIndex == -1 ) if ( columnIndex == -1 )
columnIndex = getActiveColumn(); columnIndex = getActiveColumn();
if ( columnIndex < 0 ) if ( columnIndex < 0 )
...@@ -879,7 +879,7 @@ void CGUITable::draw() ...@@ -879,7 +879,7 @@ void CGUITable::draw()
for ( u32 i = 0 ; i < Rows.size() ; ++i ) for ( u32 i = 0 ; i < Rows.size() ; ++i )
{ {
if (rowRect.LowerRightCorner.Y >= AbsoluteRect.UpperLeftCorner.Y && if (rowRect.LowerRightCorner.Y >= AbsoluteRect.UpperLeftCorner.Y &&
rowRect.UpperLeftCorner.Y <= AbsoluteRect.LowerRightCorner.Y) rowRect.UpperLeftCorner.Y <= AbsoluteRect.LowerRightCorner.Y)
{ {
// draw row seperator // draw row seperator
if ( DrawFlags & EGTDF_ROWS ) if ( DrawFlags & EGTDF_ROWS )
...@@ -893,7 +893,7 @@ void CGUITable::draw() ...@@ -893,7 +893,7 @@ void CGUITable::draw()
pos = rowRect.UpperLeftCorner.X; pos = rowRect.UpperLeftCorner.X;
// draw selected row background highlighted // draw selected row background highlighted
if ((s32)i == Selected && DrawFlags & EGTDF_ACTIVE_ROW ) if ((s32)i == Selected && DrawFlags & EGTDF_ACTIVE_ROW )
driver->draw2DRectangle(skin->getColor(EGDC_HIGH_LIGHT), rowRect, &clientClip); driver->draw2DRectangle(skin->getColor(EGDC_HIGH_LIGHT), rowRect, &clientClip);
for ( u32 j = 0 ; j < Columns.size() ; ++j ) for ( u32 j = 0 ; j < Columns.size() ; ++j )
...@@ -927,7 +927,7 @@ void CGUITable::draw() ...@@ -927,7 +927,7 @@ void CGUITable::draw()
const wchar_t* text = Columns[i].Name.c_str(); const wchar_t* text = Columns[i].Name.c_str();
u32 colWidth = Columns[i].Width; u32 colWidth = Columns[i].Width;
core::dimension2d<s32 > dim = font->getDimension(text); //core::dimension2d<s32 > dim = font->getDimension(text);
core::rect<s32> columnrect(pos, tableRect.UpperLeftCorner.Y, pos + colWidth, headerBottom); core::rect<s32> columnrect(pos, tableRect.UpperLeftCorner.Y, pos + colWidth, headerBottom);
...@@ -974,7 +974,7 @@ void CGUITable::draw() ...@@ -974,7 +974,7 @@ void CGUITable::draw()
} }
void CGUITable::breakText(const core::stringw &text, core::stringw & brokenText, u32 cellWidth) void CGUITable::breakText(const core::stringw& text, core::stringw& brokenText, u32 cellWidth)
{ {
IGUISkin* skin = Environment->getSkin(); IGUISkin* skin = Environment->getSkin();
...@@ -1022,12 +1022,14 @@ void CGUITable::breakText(const core::stringw &text, core::stringw & brokenText, ...@@ -1022,12 +1022,14 @@ void CGUITable::breakText(const core::stringw &text, core::stringw & brokenText,
brokenText = line; brokenText = line;
} }
//! Set some flags influencing the layout of the table //! Set some flags influencing the layout of the table
void CGUITable::setDrawFlags(s32 flags) void CGUITable::setDrawFlags(s32 flags)
{ {
DrawFlags = flags; DrawFlags = flags;
} }
//! Get the flags which influence the layout of the table //! Get the flags which influence the layout of the table
s32 CGUITable::getDrawFlags() const s32 CGUITable::getDrawFlags() const
{ {
...@@ -1089,7 +1091,7 @@ void CGUITable::serializeAttributes(io::IAttributes* out, io::SAttributeReadWrit ...@@ -1089,7 +1091,7 @@ void CGUITable::serializeAttributes(io::IAttributes* out, io::SAttributeReadWrit
out->addBool ("Clip", Clip); out->addBool ("Clip", Clip);
out->addBool ("DrawBack", DrawBack); out->addBool ("DrawBack", DrawBack);
out->addBool ("MoveOverSelect", MoveOverSelect); out->addBool ("MoveOverSelect", MoveOverSelect);
// s32 CurrentResizedColumn; // runtime info - depends on user action // s32 CurrentResizedColumn; // runtime info - depends on user action
out->addBool ("ResizableColumns", ResizableColumns); out->addBool ("ResizableColumns", ResizableColumns);
...@@ -1102,6 +1104,7 @@ void CGUITable::serializeAttributes(io::IAttributes* out, io::SAttributeReadWrit ...@@ -1102,6 +1104,7 @@ void CGUITable::serializeAttributes(io::IAttributes* out, io::SAttributeReadWrit
out->addInt("DrawFlags", DrawFlags); out->addInt("DrawFlags", DrawFlags);
} }
//! Reads attributes of the element //! Reads attributes of the element
void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options) void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options)
{ {
...@@ -1122,7 +1125,7 @@ void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri ...@@ -1122,7 +1125,7 @@ void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri
label = "Column"; label += i; label += "width"; label = "Column"; label += i; label += "width";
column.Width = in->getAttributeAsInt(label.c_str()); column.Width = in->getAttributeAsInt(label.c_str());
label = "Column"; label += i; label += "OrderingMode"; label = "Column"; label += i; label += "OrderingMode";
column.OrderingMode = EGCO_NONE; column.OrderingMode = EGCO_NONE;
s32 co = in->getAttributeAsEnumeration(label.c_str(), GUIColumnOrderingNames); s32 co = in->getAttributeAsEnumeration(label.c_str(), GUIColumnOrderingNames);
if (co > 0) if (co > 0)
...@@ -1163,9 +1166,9 @@ void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri ...@@ -1163,9 +1166,9 @@ void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri
} }
} }
ItemHeight = 0; // calculated ItemHeight = 0; // calculated
TotalItemHeight = 0; // calculated TotalItemHeight = 0; // calculated
TotalItemWidth = 0; // calculated TotalItemWidth = 0; // calculated
// force font recalculation // force font recalculation
if ( Font ) if ( Font )
...@@ -1177,7 +1180,7 @@ void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri ...@@ -1177,7 +1180,7 @@ void CGUITable::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri
Clip = in->getAttributeAsBool("Clip"); Clip = in->getAttributeAsBool("Clip");
DrawBack = in->getAttributeAsBool("DrawBack"); DrawBack = in->getAttributeAsBool("DrawBack");
MoveOverSelect = in->getAttributeAsBool("MoveOverSelect"); MoveOverSelect = in->getAttributeAsBool("MoveOverSelect");
CurrentResizedColumn = -1; CurrentResizedColumn = -1;
ResizeStart = 0; ResizeStart = 0;
ResizableColumns = in->getAttributeAsBool("ResizableColumns"); ResizableColumns = in->getAttributeAsBool("ResizableColumns");
......
...@@ -51,7 +51,9 @@ IAnimatedMesh* CXMeshFileLoader::createMesh(io::IReadFile* f) ...@@ -51,7 +51,9 @@ IAnimatedMesh* CXMeshFileLoader::createMesh(io::IReadFile* f)
if (!f) if (!f)
return 0; return 0;
#ifdef _XREADER_DEBUG
u32 time = os::Timer::getRealTime(); u32 time = os::Timer::getRealTime();
#endif
AnimatedMesh = new CSkinnedMesh(); AnimatedMesh = new CSkinnedMesh();
...@@ -503,7 +505,7 @@ bool CXMeshFileLoader::parseDataObjectTemplate() ...@@ -503,7 +505,7 @@ bool CXMeshFileLoader::parseDataObjectTemplate()
} }
// read GUID // read GUID
core::stringc guid = getNextToken(); getNextToken();
// read and ignore data members // read and ignore data members
while(true) while(true)
...@@ -1587,12 +1589,15 @@ bool CXMeshFileLoader::parseDataObjectAnimationKey(ISkinnedMesh::SJoint *joint) ...@@ -1587,12 +1589,15 @@ bool CXMeshFileLoader::parseDataObjectAnimationKey(ISkinnedMesh::SJoint *joint)
keyP->frame=time; keyP->frame=time;
keyP->position=mat.getTranslation(); keyP->position=mat.getTranslation();
/*
core::vector3df scale=mat.getScale(); core::vector3df scale=mat.getScale();
//if (scale.X==0) scale.X=1; if (scale.X==0)
//if (scale.Y==0) scale.Y=1; scale.X=1;
//if (scale.Z==0) scale.Z=1; if (scale.Y==0)
/* scale.Y=1;
if (scale.Z==0)
scale.Z=1;
ISkinnedMesh::SScaleKey *keyS=AnimatedMesh->createScaleKey(joint); ISkinnedMesh::SScaleKey *keyS=AnimatedMesh->createScaleKey(joint);
keyS->frame=time; keyS->frame=time;
keyS->scale=scale; keyS->scale=scale;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment