Added macro around texture exporter to ensure tpv compliance, started messing with develop.py
This commit is contained in:
@@ -80,6 +80,7 @@ class PlatformSetup(object):
|
|||||||
distcc = True
|
distcc = True
|
||||||
cmake_opts = []
|
cmake_opts = []
|
||||||
word_size = 32
|
word_size = 32
|
||||||
|
opensim_rules = False #whether or not to use rules fit for opensim
|
||||||
using_express = False
|
using_express = False
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -123,6 +124,7 @@ class PlatformSetup(object):
|
|||||||
standalone=self.standalone,
|
standalone=self.standalone,
|
||||||
unattended=self.unattended,
|
unattended=self.unattended,
|
||||||
word_size=self.word_size,
|
word_size=self.word_size,
|
||||||
|
opensim_rules=self.opensim_rules,
|
||||||
type=self.build_type.upper(),
|
type=self.build_type.upper(),
|
||||||
)
|
)
|
||||||
#if simple:
|
#if simple:
|
||||||
@@ -131,6 +133,7 @@ class PlatformSetup(object):
|
|||||||
'-DSTANDALONE:BOOL=%(standalone)s '
|
'-DSTANDALONE:BOOL=%(standalone)s '
|
||||||
'-DUNATTENDED:BOOL=%(unattended)s '
|
'-DUNATTENDED:BOOL=%(unattended)s '
|
||||||
'-DWORD_SIZE:STRING=%(word_size)s '
|
'-DWORD_SIZE:STRING=%(word_size)s '
|
||||||
|
'-DOPENSIM_RULES:BOOL=%(opensim_rules)s '
|
||||||
'-G %(generator)r %(opts)s %(dir)r' % args)
|
'-G %(generator)r %(opts)s %(dir)r' % args)
|
||||||
|
|
||||||
def run_cmake(self, args=[]):
|
def run_cmake(self, args=[]):
|
||||||
@@ -292,6 +295,7 @@ class LinuxSetup(UnixSetup):
|
|||||||
type=self.build_type.upper(),
|
type=self.build_type.upper(),
|
||||||
project_name=self.project_name,
|
project_name=self.project_name,
|
||||||
word_size=self.word_size,
|
word_size=self.word_size,
|
||||||
|
opensim_rules=self.opensim_rules,
|
||||||
)
|
)
|
||||||
if not self.is_internal_tree():
|
if not self.is_internal_tree():
|
||||||
args.update({'cxx':'g++', 'server':'OFF', 'viewer':'ON'})
|
args.update({'cxx':'g++', 'server':'OFF', 'viewer':'ON'})
|
||||||
@@ -318,6 +322,7 @@ class LinuxSetup(UnixSetup):
|
|||||||
'-DVIEWER:BOOL=%(viewer)s -DSTANDALONE:BOOL=%(standalone)s '
|
'-DVIEWER:BOOL=%(viewer)s -DSTANDALONE:BOOL=%(standalone)s '
|
||||||
'-DUNATTENDED:BOOL=%(unattended)s '
|
'-DUNATTENDED:BOOL=%(unattended)s '
|
||||||
'-DWORD_SIZE:STRING=%(word_size)s '
|
'-DWORD_SIZE:STRING=%(word_size)s '
|
||||||
|
'-DOPENSIM_RULES:BOOL=%(opensim_rules)s '
|
||||||
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
||||||
'%(opts)s %(dir)r')
|
'%(opts)s %(dir)r')
|
||||||
% args)
|
% args)
|
||||||
@@ -431,6 +436,7 @@ class DarwinSetup(UnixSetup):
|
|||||||
unattended=self.unattended,
|
unattended=self.unattended,
|
||||||
project_name=self.project_name,
|
project_name=self.project_name,
|
||||||
universal='',
|
universal='',
|
||||||
|
opensim_rules=self.opensim_rules,
|
||||||
type=self.build_type.upper(),
|
type=self.build_type.upper(),
|
||||||
)
|
)
|
||||||
if self.unattended == 'ON':
|
if self.unattended == 'ON':
|
||||||
@@ -442,6 +448,7 @@ class DarwinSetup(UnixSetup):
|
|||||||
'-DSTANDALONE:BOOL=%(standalone)s '
|
'-DSTANDALONE:BOOL=%(standalone)s '
|
||||||
'-DUNATTENDED:BOOL=%(unattended)s '
|
'-DUNATTENDED:BOOL=%(unattended)s '
|
||||||
'-DWORD_SIZE:STRING=%(word_size)s '
|
'-DWORD_SIZE:STRING=%(word_size)s '
|
||||||
|
'-DOPENSIM_RULES:BOOL=%(opensim_rules)s '
|
||||||
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
||||||
'%(universal)s '
|
'%(universal)s '
|
||||||
'%(opts)s %(dir)r' % args)
|
'%(opts)s %(dir)r' % args)
|
||||||
@@ -530,6 +537,7 @@ class WindowsSetup(PlatformSetup):
|
|||||||
unattended=self.unattended,
|
unattended=self.unattended,
|
||||||
project_name=self.project_name,
|
project_name=self.project_name,
|
||||||
word_size=self.word_size,
|
word_size=self.word_size,
|
||||||
|
opensim_rules=self.opensim_rules,
|
||||||
)
|
)
|
||||||
#if simple:
|
#if simple:
|
||||||
# return 'cmake %(opts)s "%(dir)s"' % args
|
# return 'cmake %(opts)s "%(dir)s"' % args
|
||||||
@@ -537,6 +545,7 @@ class WindowsSetup(PlatformSetup):
|
|||||||
'-DSTANDALONE:BOOL=%(standalone)s '
|
'-DSTANDALONE:BOOL=%(standalone)s '
|
||||||
'-DUNATTENDED:BOOL=%(unattended)s '
|
'-DUNATTENDED:BOOL=%(unattended)s '
|
||||||
'-DWORD_SIZE:STRING=%(word_size)s '
|
'-DWORD_SIZE:STRING=%(word_size)s '
|
||||||
|
'-DOPENSIM_RULES:BOOL=%(opensim_rules)s '
|
||||||
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
||||||
'%(opts)s "%(dir)s"' % args)
|
'%(opts)s "%(dir)s"' % args)
|
||||||
|
|
||||||
@@ -688,6 +697,7 @@ class CygwinSetup(WindowsSetup):
|
|||||||
unattended=self.unattended,
|
unattended=self.unattended,
|
||||||
project_name=self.project_name,
|
project_name=self.project_name,
|
||||||
word_size=self.word_size,
|
word_size=self.word_size,
|
||||||
|
opensim_rules=self.opensim_rules,
|
||||||
)
|
)
|
||||||
#if simple:
|
#if simple:
|
||||||
# return 'cmake %(opts)s "%(dir)s"' % args
|
# return 'cmake %(opts)s "%(dir)s"' % args
|
||||||
@@ -695,6 +705,7 @@ class CygwinSetup(WindowsSetup):
|
|||||||
'-DUNATTENDED:BOOl=%(unattended)s '
|
'-DUNATTENDED:BOOl=%(unattended)s '
|
||||||
'-DSTANDALONE:BOOL=%(standalone)s '
|
'-DSTANDALONE:BOOL=%(standalone)s '
|
||||||
'-DWORD_SIZE:STRING=%(word_size)s '
|
'-DWORD_SIZE:STRING=%(word_size)s '
|
||||||
|
'-DOPENSIM_RULES:BOOL=%(opensim_rules)s '
|
||||||
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
|
||||||
'%(opts)s "%(dir)s"' % args)
|
'%(opts)s "%(dir)s"' % args)
|
||||||
|
|
||||||
|
|||||||
@@ -809,7 +809,7 @@ std::string LLAppViewerLinux::generateSerialNumber()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
llerrs << "Couldn't open /dev/disk/by-uuid/" << llendl;
|
llwarns << "Couldn't open /dev/disk/by-uuid/" << llendl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rootDeviceName != "" && rootDeviceUUID != "")
|
if(rootDeviceName != "" && rootDeviceUUID != "")
|
||||||
@@ -823,7 +823,7 @@ std::string LLAppViewerLinux::generateSerialNumber()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
llinfos << "Could not find root device's UUID" << llendl;
|
llwarns << "Could not find root device's UUID" << llendl;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return serial_md5;
|
return serial_md5;
|
||||||
|
|||||||
@@ -158,6 +158,27 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
|
|||||||
LLViewerObject *object = mPick.getObject();
|
LLViewerObject *object = mPick.getObject();
|
||||||
LLViewerObject *parent = NULL;
|
LLViewerObject *parent = NULL;
|
||||||
|
|
||||||
|
#ifdef OPENSIM_RULES
|
||||||
|
#warn "DICKS IN MY BUTT"
|
||||||
|
if(mPick.mKeyMask == MASK_SHIFT)
|
||||||
|
{
|
||||||
|
if(object)
|
||||||
|
{
|
||||||
|
U8 face = mPick.mObjectFace & 0xff;
|
||||||
|
if(face < object->getNumTEs())
|
||||||
|
{
|
||||||
|
LLViewerImage* img = object->getTEImage(face);
|
||||||
|
if(img)
|
||||||
|
{
|
||||||
|
LLUUID image_id = img->getID();
|
||||||
|
LLInventoryBridge::open_texture(image_id, std::string(image_id), true, LLUUID::null ,true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
#endif /* OPENSIM_RULES */
|
||||||
|
|
||||||
if (mPick.mPickType != LLPickInfo::PICK_LAND)
|
if (mPick.mPickType != LLPickInfo::PICK_LAND)
|
||||||
{
|
{
|
||||||
LLViewerParcelMgr::getInstance()->deselectLand();
|
LLViewerParcelMgr::getInstance()->deselectLand();
|
||||||
|
|||||||
Reference in New Issue
Block a user