Project UI anchors from interpolated render state
Some checks are pending
build / Windows Build (push) Waiting to run
Some checks are pending
build / Windows Build (push) Waiting to run
This commit is contained in:
@@ -856,15 +856,14 @@ PyObject * chrGetProjectPosition(PyObject* poSelf, PyObject* poArgs)
|
||||
if (!pInstance)
|
||||
return Py_BuildValue("ii", -100, -100);
|
||||
|
||||
TPixelPosition PixelPosition;
|
||||
pInstance->NEW_GetPixelPosition(&PixelPosition);
|
||||
const D3DXVECTOR3& c_rv3Position = pInstance->GetGraphicThingInstanceRef().GetPosition();
|
||||
|
||||
CPythonGraphic & rpyGraphic = CPythonGraphic::Instance();
|
||||
|
||||
float fx, fy, fz;
|
||||
rpyGraphic.ProjectPosition(PixelPosition.x,
|
||||
-PixelPosition.y,
|
||||
PixelPosition.z + float(iHeight),
|
||||
rpyGraphic.ProjectPosition(c_rv3Position.x,
|
||||
c_rv3Position.y,
|
||||
c_rv3Position.z + float(iHeight),
|
||||
&fx, &fy, &fz);
|
||||
|
||||
if (1 == int(fz))
|
||||
|
||||
Reference in New Issue
Block a user