Skip to content
Snippets Groups Projects
Commit 3ed6c4a5 authored by figment's avatar figment
Browse files

Fix Biped name string casting issue for older versions

parent e2dc044e
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ void NifImporter::ImportBipeds(vector<NiNodeRef>& nodes)
if (master)
{
master->SetRootName(bipname.c_str());
master->SetRootName(const_cast<LPTSTR>(bipname.c_str()));
//if (INode *rootNode = gi->GetINodeByName(bipname.c_str())) {
// if (Control *c = rootNode->GetTMController()) {
......
@echo on
IF EXIST "setbuildenv.bat" call setbuildenv.bat
pushd "%~dp0"
setlocal
IF EXIST "setbuildenv.bat" call setbuildenv.bat
REM using delayed expansion ! instead of % as it just works better with ProgramFiles(x86) env variable
IF EXIST "%ProgramFiles(x86)%" set Program_32=%ProgramFiles(x86)%
......@@ -30,7 +29,10 @@ if "%MAXINSTALLPATH2015%" == "" set MAXINSTALLPATH2015=%Program_32%\AutoDesk\3ds
if "%MAXINSTALLPATH2016%" == "" set MAXINSTALLPATH2016=%Program_32%\AutoDesk\3ds Max 2016 SDK
REM svn update
set SUPPRESS_BUILD_CONFIG=0
call makeconfig.bat
set SUPPRESS_BUILD_CONFIG=1
IF EXIST "%GMAXINSTALLPATH12%" msbuild NifPlugins.sln "/p:Configuration=Release - gmax" /p:Platform=Win32
IF EXIST "%MAXINSTALLPATH42%" msbuild NifPlugins.sln "/p:Configuration=Release - Max 4.2" /p:Platform=Win32
IF EXIST "%MAXINSTALLPATH50%" msbuild NifPlugins.sln "/p:Configuration=Release - Max 5" /p:Platform=Win32
......
@echo off
REM Quick script to create config.h
pushd "%~dp0"
setlocal
IF NOT "%SUPPRESS_BUILD_CONFIG%" == "1" (
set WCREV=0
set WCDATE=
set WCURL=
set WCREV=0
set WCDATE=
set WCURL=
for /f "usebackq delims=|" %%i in (`git log -1 "--pretty=format:%%h"`) do set WCREV=%%i
for /f "usebackq delims=|" %%i in (`git log -1 "--pretty=format:%%cd"`) do set WCDATE=%%i
for /f "usebackq delims=|" %%i in (`git config --get remote.origin.url`) do set WCURL=%%i
sed "s/[$]WCREV[$]/%WCREV%/g" < NifCommon/config.h.in | sed "s/[$]WCDATE[$]/%WCDATE%/g" | sed "s![$]WCURL[$]!%WCURL%!g" > NifCommon/config.h
endlocal
\ No newline at end of file
for /f "usebackq delims=|" %%i in (`git log -1 "--pretty=format:%%h"`) do set WCREV=%%i
for /f "usebackq delims=|" %%i in (`git log -1 "--pretty=format:%%cd"`) do set WCDATE=%%i
for /f "usebackq delims=|" %%i in (`git config --get remote.origin.url`) do set WCURL=%%i
sed "s/[$]WCREV[$]/%WCREV%/g" < NifCommon/config.h.in | sed "s/[$]WCDATE[$]/%WCDATE%/g" | sed "s![$]WCURL[$]!%WCURL%!g" > NifCommon/config.h
)
endlocal
popd
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment